Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by sswanstr

  1. sswanstr

    capturing stderr and command

    That works great now I just need to figure out the best way to implement it for a lot of commands. Thanks for the help
  2. sswanstr

    capturing stderr and command

    I am working on a script that calls several system commands to change some OS settings and run some other commands. I want to try to capture stderr for when something goes wrong. I have been able to do this, however, all I get is the output from the command. Is there a way to tell/capture...
  3. sswanstr

    print to a file

    I am running the script as root on the server so there is no issue with permissions. That being said I let the script run to completion this time and it looks like it dumps all the output to the file at the same time once the script completes. Though when I run it normally it prints stuff to...
  4. sswanstr

    print to a file

    permissions isn't the issue. Before attempting to write to the file I touch it and chmod it to 777: system("touch image_report.out"); system("chmod 777 image_report.out"); open (OUTFILE, '>>image_report.out');
  5. sswanstr

    print to a file

    I have a perl script that works great and prints the output to the console screen. However, if I try to redirect the output on the command line, nothing gets printed to the file. I tried modifying the script to print to a file instead of the screen but get the same results (nothing in the...

Part and Inventory Search

Back
Top