Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6543055
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T11:18:01+00:00 2026-05-25T11:18:01+00:00

I have a scripts (a.py) reads in 2 parameters like this:- #!/usr/bin/env python import

  • 0

I have a scripts (a.py) reads in 2 parameters like this:-

#!/usr/bin/env python

import sys
username = sys.argv[1]
password = sys.argv[2]

Problem is, when I call the script with some special characters:-

a.py   "Lionel"   "my*password"

It gives me this error:-

/swdev/tools/python/current/linux64/bin/python: No match.

Any workaround for this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T11:18:02+00:00Added an answer on May 25, 2026 at 11:18 am

    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 $ARGV[0] and $ARGV[1] (the command name is $0). The Perl script you showed us wouldn’t produce the output you showed us.

    “No match” is a shell error message.

    Copy-and-paste (don’t re-type) the exact contents of your Python script, the exact command line you used to invoke it, and the exact output you got.

    Some more things to watch out for:

    You’re invoking the script as a.py, which implies either that you’re copying it to some directory in your $PATH, or that . is in your $PATH. If the latter, that’s a bad idea; consider what happens if you cd info a directory that contains a (possibly malicious) command called ls. Putting . at the end of your $PATH is safer than putting it at the beginning, but I still recommend leaving it out altogether and using ./command to invoke commands in the current directory. In any case, for purposes of this exercise, please use ./a.py rather than a.py, just so we can be sure you’re not picking up another a.py from elsewhere in your $PATH.

    This is a long shot, but check whether you have any files in your current directory with a * character in their names. some_command asd*123 (without quotation marks) will fail if there are no matching files, but not if there happens to be a file whose name is literally "asd*123".

    Another thing to try: change your Python script as follows:

    #!/usr/bin/env python
    
    print "before import sys"
    
    import sys
    
    print "after import sys"
    
    username = sys.argv[1]
    password = sys.argv[2]
    

    This will tell you whether the shell is invoking your script at all.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Have a shell script that reads the files in a particular directory. #!/bin/bash for
I have a Python script that reads through a text csv file and creates
I have a small python script which i use everyday......it basically reads a file
I have this Python based service daemon which is doing a lot of multiplexed
I have a file like this: 1234 1234 First Name Last Name And I
I currently have something like this: <form action=cart.php?action=update method=post name=cart id=cart> <input maxlength=3 value=25
I have a link that looks like this: <p class=half_text> <?php echo $upvotes; ?>
I have a script that reads a form and puts some info into a
I have a php script which accesses a MSSQL2005 database, reads some data from
I have a written a script in PHP that reads from data from a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.