Scripting MGR Actions
Dear friends,
I'm rather new in doing the MGR scripting. Which file is actually meant by our colleague tempmj for his statement below:
I added the following lines to the MTCL user's crontab:
0 8 * * * /DHS3bin/oneshot/mtcl/mgr -nodico -XX fwdToCell > /DHS3bin/mtcl/cronlog.txt 2>&1
0 17 * * * /DHS3bin/oneshot/mtcl/mgr -nodico -XX unfwdFromCell > /DHS3bin/mtcl/cronlog.txt 2>&1
Is that mtcl.cron in usr2/mtcl? Or some other file?
How to exactly write the line if i were to run the command at 1745? I tried in the lab but to no success.
Seek the expert advice.
Thank you in advance
I'm rather new in doing the MGR scripting. Which file is actually meant by our colleague tempmj for his statement below:
I added the following lines to the MTCL user's crontab:
0 8 * * * /DHS3bin/oneshot/mtcl/mgr -nodico -XX fwdToCell > /DHS3bin/mtcl/cronlog.txt 2>&1
0 17 * * * /DHS3bin/oneshot/mtcl/mgr -nodico -XX unfwdFromCell > /DHS3bin/mtcl/cronlog.txt 2>&1
Is that mtcl.cron in usr2/mtcl? Or some other file?
How to exactly write the line if i were to run the command at 1745? I tried in the lab but to no success.
Seek the expert advice.
Thank you in advance
solved
kzaman69 wrote:Dear friends,
I'm rather new in doing the MGR scripting. Which file is actually meant by our colleague tempmj for his statement below:
I added the following lines to the MTCL user's crontab:
0 8 * * * /DHS3bin/oneshot/mtcl/mgr -nodico -XX fwdToCell > /DHS3bin/mtcl/cronlog.txt 2>&1
0 17 * * * /DHS3bin/oneshot/mtcl/mgr -nodico -XX unfwdFromCell > /DHS3bin/mtcl/cronlog.txt 2>&1
Is that mtcl.cron in usr2/mtcl? Or some other file?
How to exactly write the line if i were to run the command at 1745? I tried in the lab but to no success.
Seek the expert advice.
Thank you in advance
hi,
that command i use:
1 14 17 9 * /usr2/oneshot/mtcl/mgr -nodico -XX fwdToGuide > /DHS3bin/mtcl/FWDlog.txt 2>&1
1 7 20 9 * /usr2/oneshot/mtcl/mgr -nodico -XX noFWD > /DHS3bin/mtcl/noFWDlog.txt 2>&1
* * * * * command to be executed
- - - - -
| | | | |
| | | | +----- day of week (0 - 6) (Sunday=0)
| | | +------- month (1 - 12)
| | +--------- day of month (1 - 31)
| +----------- hour (0 - 23)
+------------- min (0 - 59)
yes
the command is:
crontab -e
- Vi has two modes: command and edit
- when you run it, it's in command mode:
- press A to append text or I to insert
- press ESC to leave edit mode and go back to command mode
- in command mode: press "x" to delete a character
- to delete line, press "d" key twice
- in command mode type :w and hit Enter to save
- :q to exit
- :q! to exit even if you made changes
- :wq to save and exit
the command is:
crontab -e
- Vi has two modes: command and edit
- when you run it, it's in command mode:
- press A to append text or I to insert
- press ESC to leave edit mode and go back to command mode
- in command mode: press "x" to delete a character
- to delete line, press "d" key twice
- in command mode type :w and hit Enter to save
- :q to exit
- :q! to exit even if you made changes
- :wq to save and exit
Re: Scripting MGR Actions
Can you send me a proper procedure for time based forwarding. I'm not getting the correct result.
Hoping for your earliest response
Hoping for your earliest response