ASIC/FPGA Design and Verification Out Source Services
Remote Operating With CRONTAB.
Please note that I used this method to start from remote a simulation job
and have it continue to run while the remote link is disconnected. Today
it is much easy to use
screen (apt-get install screen)
utility instead.
However as crontab example this among with others on this page are good
examples on how to use
crontab.
-
First it helps to use this alias:
alias cr='crontab'.
-
Next define the task in a file. I use the daily format of CRONTAB
01 12 * * 1 /home/my_user/pini/pini_share/leon_2_1_032/leon2-1.0.32-xst/syn/xst_pini/cron.unx >>/dev/null 2>&1
-
Last is the file cron.unx:
- #!/bin/bash
- source /home/my_user/Xilinx/settings.sh
- cd /home/my_user/pini/pini_share/leon_2_1_032/leon2-1.0.32-xst/syn/xst_pini
- date > cron_1.txt
- #nice --adjustment=5 ./synt.unx >>/dev/null
- #nice --adjustment=5 ./ngd.unx >>/dev/null
- #nice --adjustment=5 ./map.unx >>/dev/null
- nice --adjustment=5 ./par.unx >>/dev/null
- date >> cron_1.txt
Note: the use of the nice command is because at that time the
very same computer, which was used to run the web server was used also for
simulation and I wanted simulation to be on a less priority.
-
To start type cr Cr.
-
To stop type cr -r.
-
To view task type cr -l.
-
To download an example tarball
|