*New 11.4 series Release:
2020-07-03: XigmaNAS 11.4.0.4.7633 - released!

*New 12.1 series Release:
2020-04-17: XigmaNAS 12.1.0.4.7542 - released


We really need "Your" help on XigmaNAS https://translations.launchpad.net/xigmanas translations. Please help today!

Producing and hosting XigmaNAS costs money. Please consider donating for our project so that we can continue to offer you the best.
We need your support! eg: PAYPAL

Perl script don't start as a cron job

XigmaNAS Scripts and shell tips
Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
oskaten
NewUser
NewUser
Posts: 4
Joined: 26 Jan 2013 14:33
Location: Norway
Status: Offline

Perl script don't start as a cron job

#1

Post by oskaten »

I have tried to set up a cron job to run a perl script every 5 minutes or so, but it won\t start automatically. The script start if I press the "Run now" button, and if I login to the server through SSH. The command I am trying to execute is [perl /mnt/Lagring/flac2mp3/flac2mp3.pl /mnt/Lagring/Musikk/Flac "/mnt/Lagring/Musikk/Mp3-konvertert flac" ]. I have selected 0,5,10,15,20,25,30,35,40,45,50,55 in the minutes section, the others is marked with "All".

Do someone have some tips? :)

User avatar
raulfg3
Site Admin
Site Admin
Posts: 5116
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: Perl script don't start as a cron job

#2

Post by raulfg3 »

perhaps you find the answer in the Wiki : http://wiki.nas4free.org/doku.php?id=faq:0043
12.0.0.4 (revision 6766)+OBI on SUPERMICRO X8SIL-F 8GB of ECC RAM, 12x3TB disk in 3 vdev in RaidZ1 = 32TB Raw size only 22TB usable

Wiki
Last changes

HP T510

oskaten
NewUser
NewUser
Posts: 4
Joined: 26 Jan 2013 14:33
Location: Norway
Status: Offline

Re: Perl script don't start as a cron job

#3

Post by oskaten »

I have read it already, and it didn't really help me out. I have tried to search on google after an answer too, but couldn't find anything that helped me.
I'am used to Windows and is a beginner on Nas4free and FreeBSD, so it's a lot to learn.

fsbruva
Advanced User
Advanced User
Posts: 378
Joined: 21 Sep 2012 14:50
Status: Offline

Re: Perl script don't start as a cron job

#4

Post by fsbruva »

Are you attempting to run the task as root? What user are you logged in as when you run it? Do you see any log messages that might be of use?

oskaten
NewUser
NewUser
Posts: 4
Joined: 26 Jan 2013 14:33
Location: Norway
Status: Offline

Re: Perl script don't start as a cron job

#5

Post by oskaten »

I have tried both root and a user that I created with rwx permissions for the folder. The only thing I see in the system log is "job completed successfully" and "Cron service restarted" when I run the job manually or try to change anything.

RedAntz
experienced User
experienced User
Posts: 127
Joined: 11 Jul 2012 07:46
Location: Sydney, Australia
Status: Offline

Re: Perl script don't start as a cron job

#6

Post by RedAntz »

oskaten wrote:I have tried both root and a user that I created with rwx permissions for the folder. The only thing I see in the system log is "job completed successfully" and "Cron service restarted" when I run the job manually or try to change anything.
There was a bug in cron job that is fixed in the latest build. Please upgrade to revision 636 and try again.

Post Reply

Return to “Scripts and shell tips”