[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[no subject]
- <!--x-content-type: text/plain -->
- <!--x-date: Wed, 24 Aug 2005 11:55:46 -0400 -->
- <!--x-from-r13: wxvaarl ng ybpnyargfbyhgvbaf.pbz (Xnzrf B. Yvaarl WWW) -->
- <!--x-message-id: [email protected] -->
- <!--x-reference: 390373.1124895152156.JavaMail.root@mswamui-billy.atl.sa.earthlink.net -->
- <!--x-reference: 1124895602.3478.0.camel@localhost -->
- <!--x-reference: [email protected] --> "http://www.w3.org/TR/html4/loose.dtd">
- <!--x-subject: [ale] Syntax problem -->
- <li><em>date</em>: Wed, 24 Aug 2005 11:55:46 -0400</li>
- <li><em>from</em>: jkinney at localnetsolutions.com (James P. Kinney III)</li>
- <li><em>in-reply-to</em>: <<a href="msg00360.html">[email protected]</a>></li>
- <li><em>references</em>: <<a href="msg00358.html">390373.1124895152156.JavaMail.root@mswamui-billy.atl.sa.earthlink.net</a>> <1124895602.3478.0.camel@localhost> <<a href="msg00360.html">[email protected]</a>></li>
- <li><em>subject</em>: [ale] Syntax problem</li>
On Wed, 2005-08-24 at 11:29 -0400, Scott Warfield wrote:
> you need the quotes to pass everything as an argument to ssh to be
> executed by the remote server. in this case, ps ax runs remotely piping
> the output locally to grep resulting in an attempt to kill a pid that
> may not exist at best... at worst, well, you can guess ;)
>
> answer to this.... escape $. "\$1"
>
> ssh machine "ps ax|grep namd|grep -v grep| awk '{print(\$1)}'|xargs
> kill"
>
> On Wed, 2005-08-24 at 11:00 -0400, Jim Popovitch wrote:
> > On Wed, 2005-08-24 at 10:52 -0400, Dow_Hurst wrote:
> > > What is the proper way to get this command to work:
> > >
> > > ssh machine "ps ax|grep namd|grep -v grep| awk '{print($1)}'|xargs kill"
> >
> > Try this (no double quotes):
> > ssh machine ps ax|grep namd|grep -v grep| awk '{print($1)}'|xargs kill
> >
> >
> > -Jim P.
> >
> >
> >
> > _______________________________________________
> > Ale mailing list
> > Ale at ale.org
> > <a rel="nofollow" href="http://www.ale.org/mailman/listinfo/ale">http://www.ale.org/mailman/listinfo/ale</a>
>
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> <a rel="nofollow" href="http://www.ale.org/mailman/listinfo/ale">http://www.ale.org/mailman/listinfo/ale</a>
--
James P. Kinney III \Changing the mobile computing world/
CEO & Director of Engineering \ one Linux user /
Local Net Solutions,LLC \ at a time. /
770-493-8244 \.___________________________./
<a rel="nofollow" href="http://www.localnetsolutions.com">http://www.localnetsolutions.com</a>
GPG ID: 829C6CA7 James P. Kinney III (M.S. Physics)
<jkinney at localnetsolutions.com>
Fingerprint = 3C9E 6366 54FC A3FE BA4D 0659 6190 ADC3 829C 6CA7
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
</pre>
<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<hr>
<ul><li><strong>Follow-Ups</strong>:
<ul>
<li><strong><a name="00363" href="msg00363.html">[ale] Syntax problem</a></strong>
<ul><li><em>From:</em> dad at datix.2y.net (David A. De Graaf)</li></ul></li>
<li><strong><a name="00370" href="msg00370.html">[ale] Syntax problem</a></strong>
<ul><li><em>From:</em> rramsdell at adelphia.net (Randy C. Ramsdell)</li></ul></li>
</ul></li></ul>
<!--X-Follow-Ups-End-->
<!--X-References-->
<ul><li><strong>References</strong>:
<ul>
<li><strong><a name="00358" href="msg00358.html">[ale] Syntax problem</a></strong>
<ul><li><em>From:</em> dhurst at mindspring.com (Dow_Hurst)</li></ul></li>
<li><strong><a name="00359" href="msg00359.html">[ale] Syntax problem</a></strong>
<ul><li><em>From:</em> jimpop at yahoo.com (Jim Popovitch)</li></ul></li>
<li><strong><a name="00360" href="msg00360.html">[ale] Syntax problem</a></strong>
<ul><li><em>From:</em> smw at malamber.org (Scott Warfield)</li></ul></li>
</ul></li></ul>
<!--X-References-End-->
<!--X-BotPNI-->
<ul>
<li>Prev by Date:
<strong><a href="msg00360.html">[ale] Syntax problem</a></strong>
</li>
<li>Next by Date:
<strong><a href="msg00362.html">[ale] Cannot chown unowned files</a></strong>
</li>
<li>Previous by thread:
<strong><a href="msg00360.html">[ale] Syntax problem</a></strong>
</li>
<li>Next by thread:
<strong><a href="msg00363.html">[ale] Syntax problem</a></strong>
</li>
<li>Index(es):
<ul>
<li><a href="maillist.html#00361"><strong>Date</strong></a></li>
<li><a href="threads.html#00361"><strong>Thread</strong></a></li>
</ul>
</li>
</ul>
<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
</body>
</html>