General :: How To Make Growisofs Working With Cron

Aug 9, 2010

I make a script to automate burning backup files on dvd. It works fine if I start it from root user, but if I start it. From cronjob do noting. I try on growisofs the option -use-the-force-luke=force but nothing happens. I check the env of cron:

HOME=/root
LOGNAME=root
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
PWD=/root
SHELL=/bin/bash
SHLVL=1
XDG_SESSION_COOKIE=3e0d70f7b71074a0b1fff4bb4aa97d13-1281297181.926502-724038309
_=/usr/bin/env
and it seems ok i've got my script in /usr/local/bin and growisofs in /usr/bin

Code of my script below:
#!/bin/bash
bkup_path='/bkrepo/';
prefix='PAR*';
totdimfile=0
for FILE in $(/bin/ls -r $bkup_path$prefix)

do
dimfile=`/bin/ls -l $FILE | /usr/bin/awk -F " " '{print $5}' `
let "totdimfile += dimfile";
if [ "$totdimfile" -lt "4700000000" ]
then
NAMEFILE=`/bin/ls -l $FILE | /usr/bin/awk -F " " '{print $8}' `
ALLNAMEFILE="$ALLNAMEFILE $NAMEFILE";
fi
done

/usr/bin/growisofs -use-the-force-luke=force -Z /dev/scd0 -R -J $ALLNAMEFILE
/usr/bin/growisofs -M /dev/scd0=/dev/zero
/usr/bin/eject
end code of my script

View 1 Replies


ADVERTISEMENT

General :: Make All Cron Jobs In Script Files?

Jun 28, 2010

in my linux box i have lot of cron jobs. i need to make all cron jobs in script files. is it possible to make this. like[URL]Now how i change this in a script file

View 4 Replies View Related

General :: Growisofs & Iso File 4gb Boundary?

Jun 7, 2010

To backup files residing on my system, I've been using mkisofs to create an empty iso file, and then populating it using growisofs: (in an empty directory)

Code:
> mkisofs -graft-points -iso-level 2 -joliet -joliet-long -udf -full-iso9660-filenames -R -o myiso.iso .
> growisofs -M myiso.iso -r -J -use-the-force-luke=4gms <filetoadd>

This was working well for isos to be written to a single-layer DVD, but when I tried to add more data meant to be written to a dual-layer disc, I get this:

":-( next session would cross 4GB boundary, aborting..." I've done some searching and it seems that -use-the-force-luke should have helped, but doesn't. I assume the problems lies with mkisofs in creating an empty iso, but not sure how to get around it. I've only started dabbling with these tools in the past few days. Is it possible to create an empty iso with growisofs, or is there another way of creating an iso file that can contain enough data for a dual-layer disc? I really would like to be able to populate an empty iso as there are scripts involved & the availability of data being backed up might not be available immediately (data being sent for backup from other teams, for example).

View 4 Replies View Related

General :: Scheduled Cron Job Stpped Working

Aug 22, 2011

I run a Fedora 9 server at home, to host an "old school" MOO.To back up the database, I scheduled a cron job - and got some help with the script.I don't fiddle with stuff on the server much, because I don't really have a clue - leave well enough alone.But now I'm without backups. (I'd prefer to get this working, as it seemed pretty simple, and worked well for so long).

View 14 Replies View Related

General :: Ruby On Rails - Cron Job Not Working

Oct 5, 2010

It is little weird now that cron job is not working as i have set. I have set weekly job to send email but i am receiving multiple emails daily. Below is my code; # sends email every monday at 4:00 am 00 04 * * 1 /usr/bin/ruby /home/mbm/www/current/script/runner /home/mbm/www/current/app/models/add_to_delayed_job.rb -e production

00 -> Minutes
04 -> Hours (0-24)
1 -> Days / 0-6 / Sun - Sat

Sending email is fine but the time is not working so far as set.

View 2 Replies View Related

General :: How To Schedule Job Using Cron That Shouldn't Run Between Working Hrs?

Aug 12, 2010

How to schedule a job using cron that shouldn't run between working hrs 9am-5pm, while run in non working hrs every hour, every day of the month, month & week.I tried the following way, not sure I can use logical not operator(!).

View 3 Replies View Related

General :: Scheduled Tasks / Cron Not Working Right?

May 23, 2011

Got a small problem, I'm trying to schedule a script to run every Thursday at midday and the scheduled tasks application on Ubuntu doesn't seem to work. The script is fine when I run it from a terminal.I have zero experience using cron at the command line, can anyone tell me what I should do?

View 2 Replies View Related

General :: Cron Not Working / Updating Opensuse 11.0

May 4, 2010

I am new to Linux and have done an install of Moodle 1.9.8 on Linux OpenSuse 11.0

I have created my cron via the terminal (crontab -e) root crontab - see below:

When going to /var/log/messages my cron entries appear as they should but my backup does not run and every morning when I go to the Notifications tab it tells me my crom maintenance script has not run in 24hours.

I would also like to get this in a log file and emailed to me.

View 2 Replies View Related

General :: Crontab(systemwide Cron) Not Working?

Apr 26, 2011

SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
# m h dom mon dow user command

[code]...

View 7 Replies View Related

General :: Page 2 - Scheduled Cron Job Stepped Working

Sep 8, 2011

The back.sh script is being run as user basil, whcih means that when it comes to copying the backup file to the target location you do not have the correct permissions to access the contents of the directory (it is rwx by root only).So, what do we do? Hoping it is ONLY the directory permissions which are fouling things up we have a range of options which, in not particular order of 'good', include:

a) change ownership/permission on target directory.
b) have the back.sh script run by the root user
c) set up sudo to permit the file copy to be done by root
d) use setuid on the back.sh to have it run, effectively, as root

A lot of the answer will depend upon what else the Dropbox directory is for. If it's JUST for your backups for this then I'd be inclined to:

Code:

chown basil /root/Dropbox
chmod g+rwx /root/Dropbox

which will permit the basil user full access and thus allow the file operations being done and give root access via the group permissions (not that the root user really needs this).Also, I'd be inclined to:

Code:

chown basil /home/xxxx/moo3/bin/back.sh
chmod u=rwx,g=rx,o= /home/xxxx/moo3/bin/back.sh

which will make things 'look' better, it just reinforces the point that the script is run (and owned) by the basil user.

View 3 Replies View Related

General :: Update Svn Working Copy Via Cron When Its Server Located On Local?

Aug 3, 2010

I have two servers. One of them has a svn server running and another hosting projects.

I have a daily cronjob updating the projects -- ie running svn update, rebuild etc.

Now, my cronjob on the remote server works.
However, a similar cronjob running on the local server for local projects (ie the same server as svn) is instead displaying a "svn: not working copy".

I double checked the paths, permissions and user info and if the script is launched manually, it works fine.
Deploying the same thing remotely works.

I even tried using file:/// (suggested here http://www.hightekhosting.com.au/myaccount/knowledgebase/90/Using-SubversionorSVN-on-cPanel-Servers.html) but still nothing.

View 1 Replies View Related

Ubuntu :: Cron Job Not Running - How To Make It Run

Mar 3, 2010

I have a cron job set up to backup my ~/ directory everyday at 10:00. But the cron job is not running. here is my confile that I loaded into crontab...

Code:

#backup everyday @ 10:00 AM and 10:30 AM
00 10 * * * /home/dave/bin/backup.sh
30 10 * * * /home/dave/bin/music_backup.sh

[code]....

the *.sh are executable. I logged out and logged back in since I put the cronfile in crontab. The commands that I use in the *.sh files work fine when I run them manually.

View 9 Replies View Related

OpenSUSE :: Cron (Cannot Make / Remove Entry For PAM Session)

Jun 28, 2011

I run a virtual server with a standard minimal openSUSE 11.4 installation (Strato image) and all recent updates installed.
Code:
$ uname -a
Linux servername 2.6.18-028stab089.1 #1 SMP Thu Apr 14 13:46:04 MSD 2011 i686 athlon i386 GNU/Linux

A few days into running the server I found that although /usr/sbin/cron was running it didn't execute the cron scripts. Instead, I find this:

Code:
$ tail -n 3 /var/log/messages
Jun 28 18:00:01 servername /usr/sbin/cron[28590]: pam_warn(crond:session): function=[pam_sm_open_session] service=[crond] terminal=[cron] user=[root] ruser=[<unknown>] rhost=[<unknown>]
Jun 28 18:00:01 servername /usr/sbin/cron[28590]: (root) PAM ERROR (Cannot make/remove an entry for the specified session)
Jun 28 18:00:01 servername /usr/sbin/cron[28590]: (root) FAILED to open PAM security session (Cannot make/remove an entry for the specified session) repeated every 20 minutes.

I have this:
Code:
$ cat /etc/pam.d/crond
# The PAM configuration file for the cron daemon
# No PAM authentication called, auth modules not needed
auth sufficient pam_rootok.so
account sufficient pam_listfile.so item=user sense=allow file=/etc/cron.allow onerr=succeed quiet
auth include common-auth
account include common-account
password include common-password

As per the standard installation and /etc/cron.allow doesn't exist (I tested if it made a difference if it existed with the single line root in it, but there was no effect). I need cron to execute because I want zypper to auto-update my server. On my home openSUSE 11.4 installation the problem doesn't exist. Is it perhaps related to the settings in the yast security center?

View 9 Replies View Related

Ubuntu Servers :: Make Sure Cron Job Copies Files Correctly

Jul 1, 2010

I made a Bash script that is fired by a Cron job every morning. It dumps an SVN backup on some Samba shared drive. I would like to know how I can make sure the job worked correctly without having to verify the shared drive every morning. Right now, I take the job's output, save it to a log file and send this file by email. But the ouput isn't so great.

[Code]....

View 2 Replies View Related

Software :: Using Growisofs To Only Create An Image?

Mar 4, 2010

Can I use 'growisofs -dvd-compat -Z /dev/null' to create only the image to burn a dvd-video dvd from the VIDEO_TS, AUDIO_TS directory tree?

View 1 Replies View Related

Debian Configuration :: Make A Cron Job That Mounts A 2nd Local Hard Drive?

Jul 1, 2011

I am making backups and I need to make a cron job that mounts a 2nd local hard drive.

It is not listed in my fstab file and I mount it manually in nautilus (having to type a password). It is designated as /dev/sdb1 and /media/repo when it is mounted. Can I get cron to mount it and then add the password or do I have to add it to fstab?

View 3 Replies View Related

Ubuntu :: When Try To Burn Recording To DVD / It Fails On Growisofs

Sep 13, 2010

I'm running hauppauge 2250 tuners (2 of them, 4 tuners total).I have the tuners set up and working although when booting up they worked intermitantly until I went through backend setup and restarted the frontend.I solved this by adding a 30 second sleep before backend startup and this seems to have fixed this.I'm still having trouble with burning and ripping dvds.I can play dvds in vlc and mythtv (mythtv since adding the sleep line). but when I try to burn a recording to dvd it fails on growisofs.I get an error 1.I've set the correct region with regionset and I have the dvd codecs.

View 1 Replies View Related

Software :: Back End Of Growisofs (burning) Using Debian 5.0.4

May 7, 2010

I use growisofs to burn image or data files into DVDs. In its manpage it refered that it's a combined genisoimage frontend/DVD recording program. while in genisoimage's manpage

Note that genisoimage is not designed to communicate with the writer directly. Most writers have proprietary command sets which vary from one manufacturer to another, and you need a specialized tool to actually burn the disc. wodim is one such tool. The latest version of wodim is available from [URL]

So,genisoimage still is a front end program. so when my using growisfo to burn something, which bin was used to actually do the burning job? wodim? I am using debian 5.0.4

View 2 Replies View Related

Ubuntu Multimedia :: Input - Output Error With Growisofs

Mar 10, 2010

I use the growisofs command from the terminal to do most of my burning. Mostly because i burn almost the exact same type of file every time so its pretty easy to set up. I've done this dozens of times and never once had a problem before. I loved it because it was so much simpler than doing this in windows where i would need to install a few extra programs and codecs. That was up until today where it started failing every single time i tried to burn something.

For some reason every time i try to burn a disc it gives me this error message:

Code:

I'm really at a loss as to why this is happening. Every thread i found that discussed this problem was mostly focused on k3b or brasero and never really answered the question. As far as i know nothing has been updated since the last time i burned a disc a few days ago. Everything is exactly the same as it was when it worked. The only thing i could think of that might have caused this sudden failure is that i flashed the firmware of another cd drive using the same sata port that this drive is currently plugged into, but that was in windows so i dont see how it could have affected this drive.

View 1 Replies View Related

Red Hat / Fedora :: Read From Standard Input In 'growisofs' Command?

Jul 12, 2010

I need to create backup of internal drive and write it on DVD. I want to do this in single command...like below: ntfsclone -f --save-image --overwrite - /dev/sda1 | growisofs -Z /dev/sr1=/dev/stdin

in above command, i tried to to create backup of first partition of internal drive and need to write this backup on DVD. But above command has some probolem due to which it could not write backup on DVD....and how to read from standard input in 'growisofs' command?

View 2 Replies View Related

Ubuntu :: Cron Job Not Working?

Oct 30, 2010

After I create a cron job to shred some documents it seems to start and then immediately stop. What am I doing wrong? For instance, here is my cron:

#!/bin/sh
DISPLAY=:0.0
PATH = /usr/local/bin:/usr/bin:/usr/sbin:/bin:/sbin:

[code]....

View 2 Replies View Related

Server :: Cron Job Not Working?

Jun 1, 2011

I have a cron job to run every 15 minutes. The cron job is running per /var/log/cron. It lists the job every 15 minutes.

[Code]...

I do not see any errors. I also looked in /var/log/messages for any errors and it does not list any. I added a line to the script that is running to send an email to me to see if it is running or not. When I run the script from the command line, the script runs without error and I get an email. I have searched and can not find what it going on. Is there some where else errors might be? Could there be a permission issue? The cron job is not being added by the root user.

View 14 Replies View Related

Slackware :: Cron Job Not Working?

Nov 13, 2010

I set up a job in my crontab file to clear the /tmp file on bootup with the following line:

Code:
@reboot rm-rf /tmp/*
My /tmp folder is not clearing. I've never used cron before;

View 7 Replies View Related

Debian :: Cron Task Not Working

Jun 27, 2015

I have a ts3.desktop file in my /usr/share/applications folder that I want to run on system boot. I have typed the following commands which don't work

Code: Select allcrontab -e

Then in the editor, I typed the following line at the bottom of file. I also made the necessary carriage return after this line.

Code: Select all@reboot gtk-launch ts3 /usr/share/applications

Then I pressed ctrl+o to save it.

After I put these commands in, I did the following command to troubleshooting this issue, see below.

Code: Select all$ crontab -l
no crontab for server
$ps -ef | grep cron | grep -v grep
root         532      1   0 21:35 ?                 00:00:00 /usr/sbin/cron -f

But after I reboot and nothing happens, the application doesn't start.

View 1 Replies View Related

Ubuntu Servers :: Cron Isn't Working

Jun 18, 2011

I'm trying to remotely schedule a shutdown using cron but I can't get it to work. I did setup the following 'sudo crontab -e'

Code:

For some reason doesn't this work, since I was able to login and get this output when using 'date'

Code:

View 7 Replies View Related

Software :: Cron Not Working Under Cygwin ?

Jun 29, 2010

I'm running cygwin 1.7 on a vanilla win2k3 r2 server. I've put together a simple crontab that I'll paste in her in a sec. The crontab entries call several shell scripts that do either scp's or rsync's from linux servers to this win2k3 box under cygwin.

The problem is that the scripts work and run fine from the commandline. Just not when called from the crontab. I'm running from the root equivalent administrator UID. The crontab log files are empty of errors.

crontab is:

Like I said, the scripts execute fine from the command line.

View 3 Replies View Related

Ubuntu :: Shell Script Not Working In Cron

Jan 20, 2010

I'm creating a script all worked fine in the command line. But not work in the cron. Below you could see the script

[Code]...

So far I found when I use corn following part not working, nothing goes to the processedfiles file. ls -l /var/lct/mou2/processed | grep $TODAY | awk '{print " " $8}' > /home/trans/mou/processedfiles ls -l /var/lct/mou2/processed | grep $YESTERDAY | awk '{print " " $8}' >> /home/trans/mou/processedfiles This work perfect in command line. Corn job and command line use by the same user.

View 6 Replies View Related

Ubuntu :: Setting Up Cron For The First Time Not Working?

Aug 17, 2010

I've read a lot on how to setup a task in crontab. I think I understand how to edit the file, but when I try to save the changes, it says "no crontab for xxx." Then it says that it cannot create a new crontab. I have ubuntu desktop 9 running as a webserver. I've read the details in these posts and it isn't helping.

[URL]

View 3 Replies View Related

General :: Make Command Still Not Working?

Jan 2, 2011

I'm running Ubuntu 10.04 and while trying to install the Wacom driver and kernel I get to the step after ./config and get this message when I use make.

make: *** No targets specified and no makefile found. Stop.

I've tried looking up on it and they all say that build-essentials should be installed first. So I looked into it and I found out that it's already installed along with the make command itself.

Anyway to get Ubuntu to recognize it as installed?

View 8 Replies View Related

General :: Make Not Working In Cygwin

Aug 16, 2010

I installed the CUnit framework which is a .tar.gz file from the bash shell in cygwin.

make gives me an error saying:

make install works
make clean works

I am not able to compile but install works I do not know if it is installed and as to where it is installed

when i checked it gives me a list of header files and also the lib files. I do not know as to why the make command is not working in cygwin. When i go to the bin directory it shows the make command.

View 5 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved