|
Solaris / Linux Issues with script
Hello,
I run this command from a solaris box and it works just fine. It gives me the kind of output in my file I am looking for which would be for example...
sb1p
rdop
ot2p
ot3p
eimp
However when I do the same thing from a Linux box...
ps -ef | grep nco_p_syslog | grep -v grep | awk '{print $NF}' | awk -F. '{print $1}' > $OMNIHOME/bin/syslogfile.dat
I get this in the file...
/lcl/apps/Tivoli/netcool/omnibus/probes/linux2x86/syslog
Both are using
#!/bin/ksh
I have no idea where it is even getting that long directory path from for the results.
Any ideas?
Thanks in advance.
|