Overclock.net › Forums › Software, Programming and Coding › Operating Systems › Linux, Unix › Cron Troubles... need help
New Posts  All Forums:Forum Nav:

Cron Troubles... need help

post #1 of 7
Thread Starter 
I can't seem to get a arecord cron job to work. I can run it manually and it works fine(arecord -d 30 -f cd /home/ryan/test.wav), but cant get it working within crontab.

Ive tried
Code:
50 6 * * * arecord -d 30 -f cd /home/ryan/test.wav
and
Code:
50 6 * * * arecord -d30 -fcd /home/ryan/test.wav
and
Code:
50 6 * * * /usr/bin/arecord -d 30 -f cd /home/ryan/test.wav
and
Code:
50 6 * * * /usr/bin/arecord -d30 -fcd /home/ryan/test.wav
lol

the time being anything within a few minutes just for testing.

Anyone got any idea of why this isn't working?
Edited by rfarris - 5/23/08 at 4:11pm
Abomination
(13 items)
 
  
CPUMotherboardGraphicsRAM
Athlon 64 3400+ Chaintech ZNF3-250 GeForce 6800 GT 2x Kingston PC3200 DDR SDRAM 512MB 
Hard DriveOSKeyboardPower
WD400 & WD800 WinXP Logitech Classic 200 Sunbeamtech SUNNU550-US 
Mouse
Logitech G5 
  hide details  
Reply
Abomination
(13 items)
 
  
CPUMotherboardGraphicsRAM
Athlon 64 3400+ Chaintech ZNF3-250 GeForce 6800 GT 2x Kingston PC3200 DDR SDRAM 512MB 
Hard DriveOSKeyboardPower
WD400 & WD800 WinXP Logitech Classic 200 Sunbeamtech SUNNU550-US 
Mouse
Logitech G5 
  hide details  
Reply
post #2 of 7
Did you update cron to push the new bits?

(besides editing the file)

crontab -l (if i remember right)

OK I was wrong. I have done this in the past;

crontab -l > newcrontab
vi newcrontab
(make changes)
crontab newcrontab



and it works for me.

Also what shell are you trying to run it under and have you used the #! construct in your script?
Edited by airbozo - 5/23/08 at 4:17pm
Gaming rig
(13 items)
 
  
CPUMotherboardGraphicsRAM
C2D E8600 ASUS Striker Extreme eVga 8800 gts 640 OCZ Platinum 4gb 
Hard DriveOptical DriveOSMonitor
WD2500JS NEC DVD+-RW Windows XP SP3 2x LG L226WTX 22" widescreen 
KeyboardPowerCaseMouse
Ideazon Merc Stealth Ultra Atx 600 Cooler Master CM690 Logitech Mx 518 
  hide details  
Reply
Gaming rig
(13 items)
 
  
CPUMotherboardGraphicsRAM
C2D E8600 ASUS Striker Extreme eVga 8800 gts 640 OCZ Platinum 4gb 
Hard DriveOptical DriveOSMonitor
WD2500JS NEC DVD+-RW Windows XP SP3 2x LG L226WTX 22" widescreen 
KeyboardPowerCaseMouse
Ideazon Merc Stealth Ultra Atx 600 Cooler Master CM690 Logitech Mx 518 
  hide details  
Reply
post #3 of 7
Thread Starter 
How do I update cron just using 'crontab -l'?, then yea ive done it a few times to check the configuration.
Abomination
(13 items)
 
  
CPUMotherboardGraphicsRAM
Athlon 64 3400+ Chaintech ZNF3-250 GeForce 6800 GT 2x Kingston PC3200 DDR SDRAM 512MB 
Hard DriveOSKeyboardPower
WD400 & WD800 WinXP Logitech Classic 200 Sunbeamtech SUNNU550-US 
Mouse
Logitech G5 
  hide details  
Reply
Abomination
(13 items)
 
  
CPUMotherboardGraphicsRAM
Athlon 64 3400+ Chaintech ZNF3-250 GeForce 6800 GT 2x Kingston PC3200 DDR SDRAM 512MB 
Hard DriveOSKeyboardPower
WD400 & WD800 WinXP Logitech Classic 200 Sunbeamtech SUNNU550-US 
Mouse
Logitech G5 
  hide details  
Reply
post #4 of 7
I was wrong, check my first post for the edit.

Also have you tried using "at" to test it?
Gaming rig
(13 items)
 
  
CPUMotherboardGraphicsRAM
C2D E8600 ASUS Striker Extreme eVga 8800 gts 640 OCZ Platinum 4gb 
Hard DriveOptical DriveOSMonitor
WD2500JS NEC DVD+-RW Windows XP SP3 2x LG L226WTX 22" widescreen 
KeyboardPowerCaseMouse
Ideazon Merc Stealth Ultra Atx 600 Cooler Master CM690 Logitech Mx 518 
  hide details  
Reply
Gaming rig
(13 items)
 
  
CPUMotherboardGraphicsRAM
C2D E8600 ASUS Striker Extreme eVga 8800 gts 640 OCZ Platinum 4gb 
Hard DriveOptical DriveOSMonitor
WD2500JS NEC DVD+-RW Windows XP SP3 2x LG L226WTX 22" widescreen 
KeyboardPowerCaseMouse
Ideazon Merc Stealth Ultra Atx 600 Cooler Master CM690 Logitech Mx 518 
  hide details  
Reply
post #5 of 7
I will check my linux system at home as well since I am using commands from my days working with IRIX (sgi version of UNIX).

back on later...
Gaming rig
(13 items)
 
  
CPUMotherboardGraphicsRAM
C2D E8600 ASUS Striker Extreme eVga 8800 gts 640 OCZ Platinum 4gb 
Hard DriveOptical DriveOSMonitor
WD2500JS NEC DVD+-RW Windows XP SP3 2x LG L226WTX 22" widescreen 
KeyboardPowerCaseMouse
Ideazon Merc Stealth Ultra Atx 600 Cooler Master CM690 Logitech Mx 518 
  hide details  
Reply
Gaming rig
(13 items)
 
  
CPUMotherboardGraphicsRAM
C2D E8600 ASUS Striker Extreme eVga 8800 gts 640 OCZ Platinum 4gb 
Hard DriveOptical DriveOSMonitor
WD2500JS NEC DVD+-RW Windows XP SP3 2x LG L226WTX 22" widescreen 
KeyboardPowerCaseMouse
Ideazon Merc Stealth Ultra Atx 600 Cooler Master CM690 Logitech Mx 518 
  hide details  
Reply
post #6 of 7
Thread Starter 
Tried the newtab thing didn't work, and I don't see why that would be different then just 'crontab -e'.
I'm not running a script, I tired doing that first but this way seemed simpler to me.

'at'? ive never used it before
Abomination
(13 items)
 
  
CPUMotherboardGraphicsRAM
Athlon 64 3400+ Chaintech ZNF3-250 GeForce 6800 GT 2x Kingston PC3200 DDR SDRAM 512MB 
Hard DriveOSKeyboardPower
WD400 & WD800 WinXP Logitech Classic 200 Sunbeamtech SUNNU550-US 
Mouse
Logitech G5 
  hide details  
Reply
Abomination
(13 items)
 
  
CPUMotherboardGraphicsRAM
Athlon 64 3400+ Chaintech ZNF3-250 GeForce 6800 GT 2x Kingston PC3200 DDR SDRAM 512MB 
Hard DriveOSKeyboardPower
WD400 & WD800 WinXP Logitech Classic 200 Sunbeamtech SUNNU550-US 
Mouse
Logitech G5 
  hide details  
Reply
post #7 of 7
Thread Starter 
Found the problem, I was setting the time incorrectly. I forgot about cron jobs using more or less, military time, should have been '30 18 * * *' when I was using '30 6 * * *'

Works now thanks, for the help airbozo.
Abomination
(13 items)
 
  
CPUMotherboardGraphicsRAM
Athlon 64 3400+ Chaintech ZNF3-250 GeForce 6800 GT 2x Kingston PC3200 DDR SDRAM 512MB 
Hard DriveOSKeyboardPower
WD400 & WD800 WinXP Logitech Classic 200 Sunbeamtech SUNNU550-US 
Mouse
Logitech G5 
  hide details  
Reply
Abomination
(13 items)
 
  
CPUMotherboardGraphicsRAM
Athlon 64 3400+ Chaintech ZNF3-250 GeForce 6800 GT 2x Kingston PC3200 DDR SDRAM 512MB 
Hard DriveOSKeyboardPower
WD400 & WD800 WinXP Logitech Classic 200 Sunbeamtech SUNNU550-US 
Mouse
Logitech G5 
  hide details  
Reply
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Linux, Unix
Overclock.net › Forums › Software, Programming and Coding › Operating Systems › Linux, Unix › Cron Troubles... need help