[Top][All Lists]

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

Re: gnuwin32

From: Paul Jarc
Subject: Re: gnuwin32
Date: Sat, 14 Oct 2006 19:59:25 -0400
User-agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.4 (gnu/linux)

"Steve" <> wrote:
>  /CODE/
>  >ping -n 1 whrcsdp05922 | awk "/TTL/ {print $3}" | awk -F: "{print
> $1}" | xargs --verbose set pcip=
>  The result is:
>  set pcip=
>  xargs: set: No such file or directory

set is a command shell builtin, and xargs can only run external
commands.  Something like this might work:

ping -n 1 whrcsdp05922 |
awk "/TTL/ {print $3}" |
awk -F: "{print \"set pcip=\" $1}" |

Of course, the variable will be set only in that invocation of cmd, so
whatever depends on the variable should probably be included in the
commands written by the second awk.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]