I have done this a half dozen time successfully. I have a perl file on a Solaris OS system. At the end of the program I want it to send the last file created.
The command I am using is
system ("mailx -r OurGroup\@domain.net -s \"Email Subject\" My.Name\@domain.net </home/myname/criticals/lo
gs/thefile
.data");
Instead of getting the entire file, I am getting the first column (before the tab) of each line (except the first line).
The file reads&
Node NodeAlias AlertGroup Summary Tally Acknowledged
CFTC - 2nd Floor UPS 172.21.131.225 lgpEventConditionEntryAdde
d: This notification is sent each time a condition is inserted into the conditions table. 909 1
CFTC - 2nd Floor UPS 172.21.131.225 lgpEventLowBatteryWarning:
The battery's remaining charge is less than or equal to the agent's configured low threshold 'lgpPwrConfigLowBatteryWar
ningTime'.
255 1
CFTC - 2nd Floor UPS 172.21.131.225 lgpEventConditionEntryRemo
ved: This notification is sent each time a co ndition is removed from the conditions table. 909 1
CFTC - 2nd Floor UPS 172.21.131.225 lgpEventBatteryTestFailed:
The device has reported a battery self-test failure. 190 1
CFTC - 2nd Floor UPS 172.21.131.225 lgpEventLoadTransferedToBy
pass: The device has transfered the load to t he bypass source. 192
Instead I am getting
Node NodeAlias AlertGroup Summary Tally Acknowledged
CFTC - 2nd Floor UPS
CFTC - 2nd Floor UPS
CFTC - 2nd Floor UPS
CFTC - 2nd Floor UPS
CFTC - 2nd Floor UPS
Like I said, I have done this many times and this is the first time I have had this problem.
Start Free Trial