Re: How does one get ssh to not wait?

2004-06-24 Thread Rob Sims
On Saturday 12 June 2004 07:22 pm, Dan Jacobson wrote:
 How does one get ssh to not wait?
 
 ssh somewhere !
 touch file
 sleep 333  rm file
 !
 echo I want control to arrive at this line without waiting 333!

I know this has been solved other ways, but I'm thinking the generic 
syntax is useful too (in the case where a program doesn't have a 
background mode):

ssh -T somewhere ! 
touch file
sleep 333  rm file
!
echo I want control to arrive at this line without waiting 333!

The -T makes ssh not complain about stdin not being a terminal.
-- 
Rob


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: How does one get ssh to not wait?

2004-06-24 Thread Ben Russo
Rob Sims wrote:
On Saturday 12 June 2004 07:22 pm, Dan Jacobson wrote:
How does one get ssh to not wait?
ssh somewhere !
touch file
sleep 333  rm file
!
echo I want control to arrive at this line without waiting 333!


sh -c sleep 333  rm -f file 
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: How does one get ssh to not wait?

2004-06-14 Thread Richard Cobbe
Lo, on Sunday, June 13, Dan Jacobson did write:

 How does one get ssh to not wait?
 
 ssh somewhere !
 touch file
 sleep 333  rm file
 !
 echo I want control to arrive at this line without waiting 333!
 
 I tried (...), disown, etc.
 Must I resort to batch(1)?
 Perhaps one could use nohup, but then I want to clean up nohup.out...

Have you tried the -f flag to ssh?  That backgrounds the ssh process
after querying you for passwords or passphrases, which seems to be what
you want.

Richard


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



How does one get ssh to not wait?

2004-06-13 Thread Dan Jacobson
How does one get ssh to not wait?

ssh somewhere !
touch file
sleep 333  rm file
!
echo I want control to arrive at this line without waiting 333!

I tried (...), disown, etc.
Must I resort to batch(1)?
Perhaps one could use nohup, but then I want to clean up nohup.out...


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: How does one get ssh to not wait?

2004-06-13 Thread Joris
Dan Jacobson verraste ons met de boodschap:

 How does one get ssh to not wait?
 
 ssh somewhere !
 touch file
 sleep 333  rm file
 !
 echo I want control to arrive at this line without waiting 333!
 
 I tried (...), disown, etc.
 Must I resort to batch(1)?

at(1) would do the job - hey, that's the same as batch - but I'd use
screen(1), with the '-d -m' option combo
greetz,

-- 
Joris


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]