[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[no subject]

Good question James.  I've run into the same problem a couple of times.
I've found two things that can help to get around the problem.

The first is to redirect input from dev null.  so, your command becomes:

ssh -f remote /usr/local/mynewcommand.sh <0 /dev/null

The other is to batch the commands on the other end.  That is done inside the the mynewcommand.sh script.
'atd' needs to be running for batch to work.

$ batch <<EOF

Batch launches a background job to run the commands, and immediately returns.

I've also run into occations where neither of these solutions work, and haven't figured that one out yet.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: hne.vcf
Type: text/x-vcard
Size: 299 bytes
Desc: not available

<li><strong><a name="00484" href="msg00484.html">[ale] ssh remote command</a></strong>
<ul><li><em>From:</em> Dow.Hurst at mindspring.com (Dow Hurst)</li></ul></li>
<li><strong><a name="00466" href="msg00466.html">[ale] ssh remote command</a></strong>
<ul><li><em>From:</em> jkinney at localnetsolutions.com (James P. Kinney III)</li></ul></li>
<li>Prev by Date:
<strong><a href="msg00472.html">[ale] Gantt charts under Linux</a></strong>
<li>Next by Date:
<strong><a href="msg00474.html">[ale] apache, ssl, DMZ, brain calcification</a></strong>
<li>Previous by thread:
<strong><a href="msg00470.html">[ale] ssh remote command</a></strong>
<li>Next by thread:
<strong><a href="msg00484.html">[ale] ssh remote command</a></strong>
<li><a href="maillist.html#00473"><strong>Date</strong></a></li>
<li><a href="threads.html#00473"><strong>Thread</strong></a></li>