![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems . |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| i want to give alias | naree | Shell Programming and Scripting | 5 | 03-31-2008 10:00 AM |
| cron entry | rujus | UNIX for Dummies Questions & Answers | 7 | 01-29-2007 05:36 PM |
| cron entry error | capeme | Shell Programming and Scripting | 6 | 10-26-2006 10:05 AM |
| Cron job entry not running | hkapil | Shell Programming and Scripting | 1 | 11-21-2005 10:46 AM |
| Cron entry | rramanuj | AIX | 1 | 11-01-2005 02:35 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
I want to know how we can give alias entry in cron
Hi all
I have created an alias for a running a script called script.sh as alias utils="sh ~/script.sh". Moreover i m using bash shell, even i have given the entry for alias in .profile in my home directory.I have given alias entry in crontab file as 30 12 * * * utils But it is not working . Can any one help me in this regard. Thank U Naree. |
|
||||
|
Place the alias in your .bashrc file in your homedirectory: Code:
alias utils='~/script.sh' If you use the cron mechanism to execute your script use the whole path and not your alias, something like: Code:
30 12 * * * /home/username/script.sh Regards |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|