Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>The problem is in the commands you're actually using, which are not the same as the commands you've shown us. Evidence: in Perl, the first two command-line arguments are <code>$ARGV[0]</code> and <code>$ARGV[1]</code> (the command name is <code>$0</code>). The Perl script you showed us wouldn't produce the output you showed us.</p> <p>"No match" is a shell error message.</p> <p>Copy-and-paste (don't re-type) the <em>exact</em> contents of your Python script, the <em>exact</em> command line you used to invoke it, and the <em>exact</em> output you got.</p> <p>Some more things to watch out for:</p> <p>You're invoking the script as <code>a.py</code>, which implies either that you're copying it to some directory in your <code>$PATH</code>, or that <code>.</code> is in your <code>$PATH</code>. If the latter, that's a bad idea; consider what happens if you <code>cd</code> info a directory that contains a (possibly malicious) command called <code>ls</code>. Putting <code>.</code> at the end of your <code>$PATH</code> is safer than putting it at the beginning, but I still recommend leaving it out altogether and using <code>./command</code> to invoke commands in the current directory. In any case, for purposes of this exercise, please use <code>./a.py</code> rather than <code>a.py</code>, just so we can be sure you're not picking up another <code>a.py</code> from elsewhere in your <code>$PATH</code>.</p> <p>This is a long shot, but check whether you have any files in your current directory with a <code>*</code> character in their names. <code>some_command asd*123</code> (without quotation marks) will fail if there are no matching files, but not if there happens to be a file whose name is literally <code>"asd*123"</code>.</p> <p>Another thing to try: change your Python script as follows:</p> <pre><code>#!/usr/bin/env python print "before import sys" import sys print "after import sys" username = sys.argv[1] password = sys.argv[2] </code></pre> <p>This will tell you whether the shell is invoking your script at all.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload