[CentOS] remote command execution

Tue Mar 18 17:00:27 UTC 2008
mouss <mouss at netoyen.net>

Joseph L. Casale wrote:
>> nohup will allow you to run a command that is not connected to the shell:
>>
>> nohup command >> nohup.log &
>>     
>
> Devin,
> What is the correct way to encapsulate the command if its rather long. Just as a test, I am trying to run `dd if=/dev/random of=~/test bs=1024 count=50000` so that I can disconnect and watch it run...
>
> A possible caveat is that I was using plink.exe to connect and execute the command and I suspect the syntax issue might be a windows shell issue.
>   


put everything in a shell script, and run the script.