Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: PATH/tr/basename mystery

by gellyfish (Monsignor)
on Apr 14, 2005 at 12:03 UTC ( [id://447723]=note: print w/replies, xml ) Need Help??


in reply to PATH/tr/basename mystery

To add a bit to the other replies, where your local MTA is sendmail then the mailq command is essentially an alias to sendmail -bp and so emptying $PATH shouldn't cause a problem, however some other MTAs operate differently and only provide the mailq command for compatibility with sendmail - in these places it is likely that mailq is a shell script (as you have seen), your best bet is not to set the $ENV{PATH} to '' but to set it to some (relatively) safe valuee such as '/bin:/usr/bin'. Alternatively you could edit the mailq script to provide the full path for the commands it can't find.

/J\

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (9)
As of 2024-04-18 12:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found