Hi,
I'm trying to gather various information about my servers and have put together a perl script to do this. One of the things I'm interested in is CPU information. Early on I check if the system is Solaris or Linux and run the appropriate commands. On Solaris I am running kstat -m cpu_info. My process runs in such a way that the output is sent to a file on a Linux server:
ssh mySolarisServer /apps/runScript.pl > output
My problem is that when I run this script I am seeing corruption (lots of ^@ symbols) after the text I'm looking for from the Solaris machines.
I logged into my Solaris server and ran:
kstat -m cpu_info > output
The output seemed fine so I then used scp to transfer the file to the Linux box. However when I do this I am seeing the same corruption in the output file on the Linux server.
Does anyone have any idea why this is and what can I do (in Perl) to fix this.
Thanks,
Tom
I'm trying to gather various information about my servers and have put together a perl script to do this. One of the things I'm interested in is CPU information. Early on I check if the system is Solaris or Linux and run the appropriate commands. On Solaris I am running kstat -m cpu_info. My process runs in such a way that the output is sent to a file on a Linux server:
ssh mySolarisServer /apps/runScript.pl > output
My problem is that when I run this script I am seeing corruption (lots of ^@ symbols) after the text I'm looking for from the Solaris machines.
I logged into my Solaris server and ran:
kstat -m cpu_info > output
The output seemed fine so I then used scp to transfer the file to the Linux box. However when I do this I am seeing the same corruption in the output file on the Linux server.
Does anyone have any idea why this is and what can I do (in Perl) to fix this.
Thanks,
Tom