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
[EMAIL PROTECTED], (858) 822-3356
_______________________________________________
Help-cfengine mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-cfengine