I'm trying to create a Linux shell script that calls the following command:
Code:
/opt/rational/base/cots/flexlm.11.8/i386_linux2/lmstat -a
My question is the above command lists some output that I need dumped into a text file and saved as $DATE_$TIME.txt and then I need the server to email that text file to a specific email address.
My confusion is when I create this Linux bash script, do I need to enter the naming / email information into the script itself or should that be omitted from the script itself and specified in the Crontab line? I've never worked with scripts before so I'm not sure what is proper procedure and such.
Recent comments
2 hours 42 min ago
12 hours 9 min ago
12 hours 59 min ago
16 hours 32 min ago
20 hours 56 min ago
21 hours 18 min ago
23 hours 28 min ago
1 day 9 hours ago
1 day 14 hours ago
1 day 15 hours ago