Guest_imported
New member
- Jan 1, 1970
- 0
Hi all,<br><br> I'm trying to add a line to an existing script that is "supposed" to e-mail the latest <i>posting.*.*.log</i> (*=yymmdd.hhmm) from a directory. But the script is failing because it can't find the latest posting logfile. I've written a command that locates the latest posting logfile and isolates it from the list, but I need to know how I should tell the script to use the output of the command to pick the file.<br><br>Here's the line:<br><i>ls -ltar ¦awk '{print $9}' $STDOUT ¦tail -3 ¦grep posting</i><br><br>I want to put this in the script, but after the grep maybe make the output a variable, can that be done on one line or should it be redirected to another file and name the file a variable? Sorry if this sounds confusing, I hate having to fix other people's scripts, especially when they don't know exactly what it is supposed to do themselves.<br><br>Thanks for the help<br> <p>Jon Zimmer<br><a href=mailto:b0rg@pcgeek.net>b0rg@pcgeek.net</a><br><a href= Aetea Information Technology</a><br>The software required `Windows 95 or better', so I installed Linux.<br>