If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Unix Shell Scripts > shell script problem on solaris 8

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-21-03, 09:28
kkaos kkaos is offline
Registered User
 
Join Date: Nov 2003
Posts: 2
Angry shell script problem on solaris 8

hi,
i'm trying to run a simple shell script to copy a file from a place to another.
The code is below:
#!/usr/bin/bash
/usr/bin/cp /filename.sh /var/tmp/filename2.sh

but this and any other simple command doesn't have success, although the cron log has no error in output!

What's happened!?!?

Thank in advance
Reply With Quote
  #2 (permalink)  
Old 11-21-03, 09:32
kkaos kkaos is offline
Registered User
 
Join Date: Nov 2003
Posts: 2
continue...

i've forgot to say that the problem cause is crontab on solaris 8.

The script work ok by command line.

bye
Reply With Quote
  #3 (permalink)  
Old 11-21-03, 10:12
gurey gurey is offline
Registered User
 
Join Date: Aug 2003
Location: Argentina
Posts: 780
Re: continue...

Quote:
Originally posted by kkaos
i've forgot to say that the problem cause is crontab on solaris 8.

The script work ok by command line.

bye
Hi,

Please test, changed #!/usr/bin/bash by #!/usr/bin/ksh.

Gustavo.
Reply With Quote
  #4 (permalink)  
Old 11-21-03, 18:14
hacker hacker is offline
Registered User
 
Join Date: Oct 2003
Posts: 18
Re: continue...

Does the script have the +x flag?

What does your crontab look like?

/Hacker
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On