LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-19-2006, 04:39 AM   #1
Joan Murt
LQ Newbie
 
Registered: Jul 2006
Posts: 14

Rep: Reputation: 0
RHELAS4 -> start backup software taper


Hello,

well, after fighting with RHELAS4 I've configured the dovecot POP3, the postfix, samba, VNC, users & groups, firewall, network, ups service and finally crontab.

In order to make backups, I use taper (I cannot post a link until my 4th post so if you want you can search taper in google (second option)).

The only problem that I still have is that when I try to start that program (taper) from the command line it works like charm [# taper -T scsi (enter)], but when I try to start it up from the crontab using the start_taper script or when I try to call that script in the command line [/root/taper/start_taper (enter)]

I get the message:
[bash: /root/taper/start_taper: permission denied]

Any idea on what should I do?

Thank you in advance.
 
Old 07-19-2006, 07:31 PM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,716
Blog Entries: 14

Rep: Reputation: 1039Reputation: 1039Reputation: 1039Reputation: 1039Reputation: 1039Reputation: 1039Reputation: 1039Reputation: 1039
Never used taper. That said - two different things likely here.

Issue 1:
The message you get trying to run the script from the command line indicates you don't have permission to run the script rather than the taper command itself.

From the way you wrote your taper syntax with the # at beginning of line it appears to be the root PS1 prompt so you're running as root when you do that and it works. For your script you show only the error and not actually the command line you ran. Were you root when you tried to run the script?

Do "ls -l /root/taper/start_taper". Does this show "root" as the owner? Does it show execute bit for the owner - for example:
-rwxr--r-- 1 root nagios 16 Oct 31 2005 test.sh

Shows root as the owner, nagios as the group. Owner has r(ead), w(rite) and e(x)execute. group only has read and all others only have read.

Issue 2:
Items run from command line inherit the logged in user's environment. Items run from cron do NOT inherit an environment. Therefore you have to make sure the full path to commands they are going to use are included in the script. So if taper were in /usr/bin rather than having your line say "taper -T scsi" in the script you'd want it to say "/usr/bin/taper -T scsi". From command line you can determine where taper is by typing "which taper". Note this is true of any command you want to run that is not internal to the shell.
 
Old 07-20-2006, 01:17 AM   #3
Joan Murt
LQ Newbie
 
Registered: Jul 2006
Posts: 14

Original Poster
Rep: Reputation: 0
Thank you, now it works fine.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux backup software and drive mirroring software csross Linux - Software 1 12-26-2007 06:59 PM
taper backup start under RHELAS4 Joan Murt Linux - Enterprise 2 07-20-2006 01:17 AM
Automatic Backup Usiag taper?? ptom98 Linux - Software 0 07-31-2003 09:39 AM
Taper??? pk21 Linux - Software 0 06-10-2002 08:46 AM
I use taper to backup files to my tape drive, but how come i cant access it like cdro adamrau Linux - General 0 11-29-2001 08:43 AM


All times are GMT -5. The time now is 05:09 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration