as we are on this, can i ask a question..:")
I didn't know this module exists and just wanted to do something like this..
What I want to do is to copy a file to remote machine and then restart service.(of cource all this via perl program) The problem is how I can do this when I have forbiden the root login via ssh(want to stay the same).
The action to be taken (shell way):
ssh user@remote -c mv /etc/dhcpd.conf /etc/dhcpd.conf.1
scp dhcpd.conf user@remote:/etc/dhcpd.conf
ssh user@remote
su
/etc/init.d/dhcpd restart
any ideas