View Single Post

   
  #1 (permalink)  
Old 01-05-2008, 10:31 AM
Denis Valdenaire
 
Posts: n/a
Default vmstat execution via ssh don't go background

Hello,

I have a problem with ssh and vmstat on AIX.
I want to run a vmstat from a client like this :

user@client> ssh -l user server " vmstat -t 60 10 > /tmp/vmstat.log & "

Problem is : the ssh don't terminate. In fact, the commande itself
seems to go in background,
when i hit Ctrl-C it stays alive (so i don't need a nohup);

But if i start this command with a crontab entry, it will hang
forever...

Any ideas ?

version of AIX is 5.3 on pSeries, but i'm pretty sure it ... well IT IS
the same on Solaris, i tested it. (Except that the -t option don't
work on Solaris)

Thanks in advance

Denis Valdenaire

Reply With Quote