384
edits
Changes
→Daily Report From Online
==== Daily Report From Online ====
Running the script with "online" <B>no filename</b> as a file argument should call a subprocess.Popen object and run the command <code>last -Fiw</code>.
<pre>
[eric@mtrx-node06pd ~]$ ./a2.py -l user online
</pre>
<pre>
[eric@mtrx-node06pd ~]$ ./a2.py -u adas20 -t daily online
</pre>