![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
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 |
| Sun Solaris10 | quickgun | SUN Solaris | 2 | 02-16-2009 06:46 AM |
| Inst. Solaris10 | mxlst14 | UNIX for Dummies Questions & Answers | 5 | 06-02-2006 04:20 AM |
| Detecting NIC in Solaris10 | jimthompson | IP Networking | 1 | 12-06-2005 09:35 AM |
| solaris10 dns problem | barabas | SUN Solaris | 5 | 06-16-2005 07:36 AM |
| help,win2003 and solaris10 in a pc? | keyi | SUN Solaris | 1 | 12-18-2004 07:05 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Re: Crontab in solaris10
Hi all,
I wrote a small shell (bash) script and it was executing well. I'm getting problem when I use this in crontab. My script is: #!/usr/bin/bash mkdir `date '+%m-%d-%y'` cd `date '+%m-%d-%y'` cvs co -r br_name module cd dir1/dir2/dir3 bash build.sh this is doing well when executed as a script but when I tried to execute this command through crontab I'm getting errors. It is creating directory but not able to checkout from CVS. can anyone solve this? And one thing I'm doing this on solaris10 where as the CVS repository is on Linux. Thanks all...... |
|
||||
|
First: Guys, post your errors here. We don't like to guess.
Second: For sure you get errors. Think about in which working directory cron will run your script Third: if you're using build tools not available in standard path you should add an explizit $PATH there |
|
|||||
|
Quote:
Maybe this FAQ will help! |
|
||||
|
version management tool......
I changed the script like this #!/usr/bin/bash mkdir `date '+%m-%d-%y'` cd `date '+%m-%d-%y'` source .profile export CVSROOT= server:sgullapalli@linux1:/polaris/local/cvsroot/opt/sfw/bin/cvs co -r br_name module cd dir1/dir2/dir3 bash build.sh but now i'm getting errors like: sh: source: not found sh: CVSROOT= server:sgullapalli@linux1:/polaris/local/cvsroot: is not an identifier |
![]() |
| Bookmarks |
| Tags |
| linux |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|