Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Remote Command Execution from windows with plink

92 views
Skip to first unread message

Ritmo2k

unread,
Mar 18, 2008, 1:33:04 PM3/18/08
to
I am trying to launch a command remotely from a windows machine on a
Linux server. I composed the commands in a bash script "nohup command
>> nohup.log &".
When I execute the script from an ssh session using putty it runs and
detaches from the console so I can log off.

When I try to automate this with plink, the output is waited for, and
redirected back to the console forcing the script to wait?

Any ideas how to automate the execution and detach while it runs
remotely?

Thanks!

Chris Mattern

unread,
Mar 18, 2008, 2:16:46 PM3/18/08
to

echo "command" | at now

command will be run by crond and have no relation to your terminal.


--
Christopher Mattern

NOTICE
Thank you for noticing this new notice
Your noticing it has been noted
And will be reported to the authorities

Ritmo2k

unread,
Mar 18, 2008, 3:45:16 PM3/18/08
to
> echo "command" | at now
>
> command will be run by crond and have no relation to your terminal.
>
> --
> Christopher Mattern

Christopher,
I had been at this for a couple of days! That worked perfectly!
Thank you very much!

Nico Kadel-Garcia

unread,
Mar 20, 2008, 8:30:47 PM3/20/08
to matt...@comcast.net
Chris Mattern wrote:
> On 2008-03-18, Ritmo2k <jca...@gmail.com> wrote:
>> I am trying to launch a command remotely from a windows machine on a
>> Linux server. I composed the commands in a bash script "nohup command
>>>> nohup.log &".
>> When I execute the script from an ssh session using putty it runs and
>> detaches from the console so I can log off.
>>
>> When I try to automate this with plink, the output is waited for, and
>> redirected back to the console forcing the script to wait?
>>
>> Any ideas how to automate the execution and detach while it runs
>> remotely?
>>
>> Thanks!
>
> echo "command" | at now
>
> command will be run by crond and have no relation to your terminal.
>
>

"command >/dev/null 2>/dev/null </dev/null &" also should work.

0 new messages