This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
Ryan,
> Using apostrophes instead of escaped quotes did not work.
>
> Jul 26 17:08:55 partner2 rpc.ldmd[9572] NOTE: child 9577 exited with status
> 2: /bin/sh --noprofile -c '/sbin/ifconfig eth0:0 | grep addr:>&/dev/null&&
> exec dir_watch_wrap -k 1>>/usr/local/ldm/logs/dir_watch/dir_watch_wrap_stdout
> 2>>/usr/local/ldm/logs/dir_watch/dir_watch_wrap_stderr'
An exit status of 2 means that the pqact(1) process successfully located the
programs to be executed ("/bin/sh" in this case) but that the program
terminated due to an error.
If you execute the command manually ("/bin/sh --noprofile -c '...'") does it
work?
Does "/bin/sh" on your system understand ">&/dev/null"?
Is there anything in "dir_watch_wrap_stdout" or "dir_watch_wrap_stderr" that
indicates a problem?
> Ryan
Regards,
Steve Emmerson
Ticket Details
===================
Ticket ID: BRA-809880
Department: Support LDM
Priority: Normal
Status: Closed