Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Problem with GetOptions

by Stevie-O (Friar)
on Dec 22, 2004 at 03:04 UTC ( #416682=note: print w/ replies, xml ) Need Help??


in reply to Problem with GetOptions

I think your problem stems from the fact that when the shell parses your string, it breaks on spaces (and there are spaces in your thing).

Try this:

SLIMSERVER_LOG="'|/usr/local/bin/multilog t s1000000 n20 /var/log/slim +server'"
Note the addition of quotes, which will cause the shell to not break the string up in the arglist.
--Stevie-O
$"=$,,$_=q>|\p4<6 8p<M/_|<('=> .q>.<4-KI<l|2$<6%s!<qn#F<>;$, .=pack'N*',"@{[unpack'C*',$_] }"for split/</;$_=$,,y[A-Z a-z] {}cd;print lc


Comment on Re: Problem with GetOptions
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://416682]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (6)
As of 2015-07-04 23:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (60 votes), past polls