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

[no subject]



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
&gt; <a  rel="nofollow" href="http://www.ale.org/mailman/listinfo/ale";>http://www.ale.org/mailman/listinfo/ale</a>



</pre>
<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<hr>
<ul><li><strong>Follow-Ups</strong>:
<ul>
<li><strong><a name="00361" href="msg00361.html">[ale] Syntax problem</a></strong>
<ul><li><em>From:</em> jkinney at localnetsolutions.com (James P. Kinney III)</li></ul></li>
<li><strong><a name="00366" href="msg00366.html">[ale] Syntax problem</a></strong>
<ul><li><em>From:</em> jimpop at yahoo.com (Jim Popovitch)</li></ul></li>
<li><strong><a name="00389" href="msg00389.html">[ale] Syntax problem</a></strong>
<ul><li><em>From:</em> esoteric at 3times25.net (Geoffrey)</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>
</ul></li></ul>
<!--X-References-End-->
<!--X-BotPNI-->
<ul>
<li>Prev by Date:
<strong><a href="msg00359.html">[ale] Syntax problem</a></strong>
</li>
<li>Next by Date:
<strong><a href="msg00361.html">[ale] Syntax problem</a></strong>
</li>
<li>Previous by thread:
<strong><a href="msg00359.html">[ale] Syntax problem</a></strong>
</li>
<li>Next by thread:
<strong><a href="msg00361.html">[ale] Syntax problem</a></strong>
</li>
<li>Index(es):
<ul>
<li><a href="maillist.html#00360"><strong>Date</strong></a></li>
<li><a href="threads.html#00360"><strong>Thread</strong></a></li>
</ul>
</li>
</ul>

<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
</body>
</html>