Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

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?

-QM
--
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.

      -QM
      --
      Quantum Mechanics: The dreams stuff is made of

        What is the cmd interpreting & as?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1021607]
help
Chatterbox?
[choroba]: Isn't Using PerlPod Creatively rather a meditation?
[choroba]: I don't see a question
[1nickt]: ugh, I stuck my head in the bass bin for 30 seconds on a dare at Ted Nugent at Hammersmith Odeon. Yes, I am 40% deaf now.
[johngg]: My daughter is incredibly jealous of my wife who got to see The Clash at Brixton many years ago. They went to see The Vaccines there recently.
[1nickt]: But the bands are even louder! I saw Spearhead (Michael Franti) at an outdoor show and had to walk a mile away to not feel pain in my chest! Babies were crying ... I asked the sound engineer why it was necessary to have the bass so loud and he laughed...
[Discipulus]: but the best i attended live was Mano Negra Patchanka at Forte Prenestino .. in 1990
[Corion]: Hmmm - Mano Negra or at least Manu Chao seem to put on a good live show. At least the one live CD I have from Manu Chao sounds good ;)
Discipulus feels the same jealousity of the johngg's daughter
[1nickt]: choroba I agree
[choroba]: Playing in a punk rock band for 20 years... my hearing is quite bad

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (13)
As of 2017-03-24 12:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (301 votes). Check out past polls.