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

[no subject]



Oooh.  Good point.  Now if I can just figure out why syslog died on my
local system I'll be back to normal. ;-)

-Jim P.

> 
> 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; &gt; <a  rel="nofollow" href="http://www.ale.org/mailman/listinfo/ale";>http://www.ale.org/mailman/listinfo/ale</a>
&gt; 
&gt; _______________________________________________
&gt; Ale mailing list
&gt; 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>
<!--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="msg00364.html">[ale] Syntax problem</a></strong>
</li>
<li>Next by Date:
<strong><a href="msg00367.html">[ale] Cannot chown unowned files</a></strong>
</li>
<li>Previous by thread:
<strong><a href="msg00397.html">[ale] Syntax problem</a></strong>
</li>
<li>Next by thread:
<strong><a href="msg00389.html">[ale] Syntax problem</a></strong>
</li>
<li>Index(es):
<ul>
<li><a href="maillist.html#00366"><strong>Date</strong></a></li>
<li><a href="threads.html#00366"><strong>Thread</strong></a></li>
</ul>
</li>
</ul>

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