The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Operating Systems > SUN Solaris
.
google unix.com



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

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 05-02-2008
gullapalli gullapalli is offline
Registered User
  
 

Join Date: May 2008
Posts: 7
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......
  #2 (permalink)  
Old 05-02-2008
fabtagon fabtagon is offline
Registered User
  
 

Join Date: Apr 2008
Location: European Union/Germany
Posts: 189
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
  #3 (permalink)  
Old 05-02-2008
gullapalli gullapalli is offline
Registered User
  
 

Join Date: May 2008
Posts: 7
Im getting error something like this

cvs checkout: No CVSROOT specified! Please use the `-d' option
cvs [checkout aborted]: or set the CVSROOT environment variable.
  #4 (permalink)  
Old 05-02-2008
gullapalli gullapalli is offline
Registered User
  
 

Join Date: May 2008
Posts: 7
i'm running this crontab in my home directory.....




and we are not using any build tools......we are using 'make' command to do builds....
  #5 (permalink)  
Old 05-02-2008
vgersh99's Avatar
vgersh99 vgersh99 is offline Forum Staff  
Moderator
  
 

Join Date: Feb 2005
Location: Boston, MA
Posts: 5,122
Quote:
Originally Posted by gullapalli View Post
i'm running this crontab in my home directory.....




and we are not using any build tools......we are using 'make' command to do builds....
well... what do you think 'cvs' is?
Maybe this FAQ will help!
  #6 (permalink)  
Old 05-02-2008
gullapalli gullapalli is offline
Registered User
  
 

Join Date: May 2008
Posts: 7
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
Closed Thread

Bookmarks

Tags
linux

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 08:45 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0