[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
ExecResult and pipes?
From: |
Steve Foley |
Subject: |
ExecResult and pipes? |
Date: |
Thu, 23 Jun 2005 14:15:06 -0700 |
Im trying to understand why the following code (run under 2.1.14):
modules_ver = ( ExecResult(/bin/ls -1 /lib/modules |/usr/bin/tail
-1 ) )
modules_dir = ( "/lib/modules/$(modules_ver)" )
generates this result:
Checking copy from foo.bar.edu:/export/cfengine/masterfiles/xscale/sw/
nslink.o to /lib/modules//bin/ls: |/usr/bin/tail: No such file or
directory /lib
/modules: 2.4.26-vrs1-pxa1-arcom3-1-viper/misc/module.o
cf:hostname: /lib/modules//bin/ls: |/usr/bin/tail: No such file or
directory /l
ib/modules: 2.4.26-vrs1-pxa1-arcom3-1-viper/misc/module.o wasn't at
destination
(copying)
Im guessing there is something dumb happening here (missing
delimiters?), but Ive tried a number of varieties. Executing "/bin/ls
-1 /lib/modules |/usr/bin/tail -1" on the command line as root gives me
the last file listing in the /lib/modules directory
("2.4.26-vrs1-pxa1-arcom3-1-viper"). Is there a better way to be
chaining shell commands around? Is there a better way to get this info?
Thanks!
-Steve
-----
Steve Foley
Scripps Institution of Oceanography
sfoley@ucsd.edu, (858) 822-3356
- ExecResult and pipes?,
Steve Foley <=