Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
If your script generates output and doesn't have a terminal, things can go wrong. This could be your problem (running from the commandline, you have a terminal. If run from cron, you don't have a terminal). But all this is just a guess, 'cause you don't tell us what is going wrong.
Actually the script is for daily backups in DVD+RW media. So i am using growisofs to write the backups file which comes out from DAR tool to DVD+RW media. Backup files extension has .dar
Backup script name is "backup.home" it contains the following line to write the backup files in DVD+RW media.
Actually inserted DVD+RW media has already datas. But every time this script overwrites the current backup files to DVD+RW media, so exisiting datas out and writing current datas in media.
this works fine if DVD+RW media has no exisit datas and also with datas if run this script from console like ./backup.home
But this script wont write datas in DVD+RW media if place this script in cron job.
to throw away all the text it would print in the terminal and redirect the filestreams into the bit bucket. This may be the reason that it works in the terminal but not in cron.
Hello computergeek84
Thanx for ur reply. The following command which u mentioned, just says no error, but it will not do its job, just come out of this growisofs command.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.