[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [OT] ssh login script - Please Help



Bill Davidsen wrote:
> 
> You don't need to do two operations, you can pass the file to the script:
>   cat myfile | ssh -i myscript.key machine [optional args]
> the first command in the script is something like:
>   dd of=safedir/new.myfile
> 
> You can pass arguments to the script, they will end up in
> $SSH_ORIGINAL_COMMAND which can be read by the script. My backup script
> takes full|incr|config|logs|crit argument on the client and sends the
> backup data to stdout where I can save it.
> 
A much better way to do it then I had posted. I like it!

Mikkel
-- 

  Do not meddle in the affairs of dragons,
for thou art crunchy and taste good with Ketchup!

Attachment: signature.asc
Description: OpenPGP digital signature


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]