Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister

Re: Argv problem

by QM (Parson)
on Mar 04, 2013 at 08:53 UTC ( #1021607=note: print w/replies, xml ) Need Help??

in reply to Argv problem

In most shells & is interpreted as "put this process in the background". So the shell is likely eating that, and leaving your script without. Try single or double quoting (depends on shell).

BTW, & is probably a poor choice for an argument. Can you change it to something else?

Quantum Mechanics: The dreams stuff is made of

Replies are listed 'Best First'.
Re^2: Argv problem
by Anonymous Monk on Mar 04, 2013 at 08:55 UTC

    Its a password field so it can have any value , so user can enter & also.

      It's probably a bad idea to let the user enter a visible password. That said, suggest that the user quote the password or escape special characters, noting that in some shells, some characters are ridiculously difficult to quote correctly.

      Also search here and elsewhere. A quick search turned up Inputting a password w/o having it displayed on screen, which may help.

      Quantum Mechanics: The dreams stuff is made of

        What is the cmd interpreting & as?

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1021607]
[choroba]: which lessons?

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (5)
As of 2017-09-25 10:22 GMT
Find Nodes?
    Voting Booth?
    During the recent solar eclipse, I:

    Results (279 votes). Check out past polls.