Re: SFTP Batch without key
From: Per Hedeland (per_at_hedeland.org)
Date: 08/06/04
- Previous message: Per Hedeland: "Re: SFTP Batch without key"
- In reply to: Richard E. Silverman: "Re: SFTP Batch without key"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Fri, 6 Aug 2004 20:41:08 +0000 (UTC)
In article <m2zn59auki.fsf@darwin.oankali.net> Richard E. Silverman
<res@qoxp.net> writes:
>>>>>> "PH" == Per Hedeland <per@hedeland.org> writes:
>
> PH> If you have 'setsid' as a command on your OS, you can try
> PH> interactively with something like
>
> PH> $ setsid sftp -b batchfile remotehost
>
>Or if not, then perhaps:
>
>perl -MPOSIX -e 'exit if fork(); setsid(); system("@ARGV")' ssh ...
Thanks, nice tip! (There are other uses for this "take away the
terminal" thing, e.g. in the past I've used it for forcing dump(8) to
abort on error instead of hanging the system in single-user with a query
on the console...)
(Actually, when I saw a followup from you in the thread list I expected
it to be a bashing for the gross SSH_ASKPASS hack suggestion...:-)
--Per Hedeland
per@hedeland.org
- Previous message: Per Hedeland: "Re: SFTP Batch without key"
- In reply to: Richard E. Silverman: "Re: SFTP Batch without key"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|