Re: [OT] ssh login script - Please Help

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

 



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

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines

[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux