Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Running Script As Specified User

by Sinister (Friar)
on Jul 04, 2001 at 18:52 UTC ( [id://93871]=note: print w/replies, xml ) Need Help??


in reply to Running Script As Specified User

You might try an ssh connection to localhost, beeing prod user, where localhost holds your publickey...

Meaning you get something like: system("ssh -f prod@localhost \"chdir dir_to_change_2 && command_to_execute\" ");
You should never the less make sure the prod user can't access the devel machine from the prod machine, would be kinda sloppy! That's what I would try anyway. Not really perlish, but It might just work...

Sinister greetings.
perldoc -q $_

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (4)
As of 2024-03-29 11:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found