MrRalphMan Posted January 25, 2010 Share Posted January 25, 2010 All, I am currently re-writing a perl script that extracts some Netbackup Data to load into a DB. I now want to add the host name to the output file, but not sure the best way to do it. Below is the current row and the variable that I added, the bold text, but awk doesn't know about it, so never prints it. What's the best way to do this? [font="Courier New"]system( "/usr/openv/netbackup/bin/admincmd/bpdbjobs -report -gdm | awk -F\",\" \'{OFS=\",\" ; print [b]\$host_name,[/b]\$16,\$2,\$3,\$4 ,\$9,\$5}\' > $job_full_output_location" ) ;[/font] Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.