Overclock.net › Forums › Software, Programming and Coding › Coding and Programming › Web Coding › Shell 'syntax error near unexpected token'
New Posts  All Forums:Forum Nav:

Shell 'syntax error near unexpected token' - Page 3

post #21 of 28
Quote:
Originally Posted by Speedster159 View Post

The only way i can run the script is by scheduling it as a Cron Job.
Do you not have shell access to the box? How are you scheduling the cron job (ie via crontab -e)?
post #22 of 28
Quote:
Originally Posted by Speedster159 View Post

The only way i can run the script is by scheduling it as a Cron Job.

Every user has a crontab.....so still not sure why root is required.
Teh Gam3r
(18 items)
 
Home server
(13 items)
 
 
CPUMotherboardGraphicsRAM
Intel i7 4770 Gigabyte GA-Z87X-D3H Z87 RT Gigabyte GTX 1070 G1 G Skill Cheapo DDR3 1600 
Hard DriveHard DriveHard DriveOptical Drive
OCZ Solid 3 Seagate Crucial SSD LG Sata DVD-RW 
CoolingOSMonitorMonitor
Noctua NH-U9B Windows 10 Pro Cheap 2560x1440 knock off Samsung T240HD  
KeyboardPowerCaseMouse
Logitech G910 Corsair TX750 Cooler Master HAF 932 Logitech G502 
Mouse PadAudio
Steel Series QcK+ SteelSeries Siberia Elite Prism 
CPUMotherboardGraphicsRAM
AMD Phenom X4 9500 Asus M3N78 Pro On board Corsair XMS2 DDR2 800 
Hard DriveHard DriveHard DriveHard Drive
Western Digital Velociraptor Samsung Sata Hitatchi Samsung 
Optical DriveCoolingOSPower
Polaroid USB DVD ROM Thermaltake TR2-R1 CentOS6 x86_64 Ultra 600W 
Case
Ultra X-Blaster 
  hide details  
Reply
Teh Gam3r
(18 items)
 
Home server
(13 items)
 
 
CPUMotherboardGraphicsRAM
Intel i7 4770 Gigabyte GA-Z87X-D3H Z87 RT Gigabyte GTX 1070 G1 G Skill Cheapo DDR3 1600 
Hard DriveHard DriveHard DriveOptical Drive
OCZ Solid 3 Seagate Crucial SSD LG Sata DVD-RW 
CoolingOSMonitorMonitor
Noctua NH-U9B Windows 10 Pro Cheap 2560x1440 knock off Samsung T240HD  
KeyboardPowerCaseMouse
Logitech G910 Corsair TX750 Cooler Master HAF 932 Logitech G502 
Mouse PadAudio
Steel Series QcK+ SteelSeries Siberia Elite Prism 
CPUMotherboardGraphicsRAM
AMD Phenom X4 9500 Asus M3N78 Pro On board Corsair XMS2 DDR2 800 
Hard DriveHard DriveHard DriveHard Drive
Western Digital Velociraptor Samsung Sata Hitatchi Samsung 
Optical DriveCoolingOSPower
Polaroid USB DVD ROM Thermaltake TR2-R1 CentOS6 x86_64 Ultra 600W 
Case
Ultra X-Blaster 
  hide details  
Reply
post #23 of 28
Thread Starter 
The big reveal... i'm using GoDaddy.
Sunkissed Beauty
(26 items)
 
Quirky
(12 items)
 
CPUMotherboardGraphicsRAM
Intel Core i7 3770K [ 4.5Ghz | 1.370V ] AsRock Z77 OC Formula ASUS GTX 760 DC2OC-2GD5 [ 1202/3506 ] Crucial Ballistix Elite 16GB 1866Mhz CL9 1.5V [... 
Hard DriveHard DriveHard DriveHard Drive
Crucial MX100 256GB Western Digital Caviar Blue 500GB [ WD5000AAKX ] Western Digital Caviar Blue 1TB [ WD10EZEX ] Western Digital Caviar Green 1TB [ WD10EARS ] 
Hard DriveCoolingCoolingCooling
Western Digital Caviar Green 1TB [ WD10EARS ] Corsair H100i Push&Pull Corsair SP120L PWM [ 2X] [ H100i ] Corsair SP120 PWM High Peformance [ 2X ][ H100 i] 
CoolingCoolingOSMonitor
NZXT FN 140RB [4X][Case] Cooler Master Sickleflow 120 Red [ 2X ][ Case ] Windows 10 Pro x64 Samsung B2230 
KeyboardPowerCaseMouse
Corsair Vengeance K95 RGB [ MX Brown ] Seasonic X760 NZXT Swtich 810 Black Logitech G402 
Mouse PadAudioAudioAudio
Razer Goliathus Alpha Control / Steelseries Qck... Sennheiser HD 429 Creative Inspire T7900 ASUS Xonar DGX 
OtherOther
NZXT Sentry LX NZXT Sleeved LED Kit | Orange 2M 
CPUMotherboardGraphicsOptical Drive
Intel Pentium Dual-Core E2200 MSI 945GCM5-F V2 (FSB 1333) Inno3D Nvidia GeForce GTS 450 1GB (Cooler Ripoff) Benq DVD-R,CD-R,DVD-ROM,CD-ROM 
CoolingMonitorKeyboardPower
Intel Stock Fan MAG InnoVision 770FS Logitech Internet Pro AcBel R8 PowerII 650W 80+ 
CaseMouseMouse PadAudio
Vertu Santa Fe "Blue" Logitech Internet Pro CM Storm Pad Sound Blaster Audigy 2 ZS 
  hide details  
Reply
Sunkissed Beauty
(26 items)
 
Quirky
(12 items)
 
CPUMotherboardGraphicsRAM
Intel Core i7 3770K [ 4.5Ghz | 1.370V ] AsRock Z77 OC Formula ASUS GTX 760 DC2OC-2GD5 [ 1202/3506 ] Crucial Ballistix Elite 16GB 1866Mhz CL9 1.5V [... 
Hard DriveHard DriveHard DriveHard Drive
Crucial MX100 256GB Western Digital Caviar Blue 500GB [ WD5000AAKX ] Western Digital Caviar Blue 1TB [ WD10EZEX ] Western Digital Caviar Green 1TB [ WD10EARS ] 
Hard DriveCoolingCoolingCooling
Western Digital Caviar Green 1TB [ WD10EARS ] Corsair H100i Push&Pull Corsair SP120L PWM [ 2X] [ H100i ] Corsair SP120 PWM High Peformance [ 2X ][ H100 i] 
CoolingCoolingOSMonitor
NZXT FN 140RB [4X][Case] Cooler Master Sickleflow 120 Red [ 2X ][ Case ] Windows 10 Pro x64 Samsung B2230 
KeyboardPowerCaseMouse
Corsair Vengeance K95 RGB [ MX Brown ] Seasonic X760 NZXT Swtich 810 Black Logitech G402 
Mouse PadAudioAudioAudio
Razer Goliathus Alpha Control / Steelseries Qck... Sennheiser HD 429 Creative Inspire T7900 ASUS Xonar DGX 
OtherOther
NZXT Sentry LX NZXT Sleeved LED Kit | Orange 2M 
CPUMotherboardGraphicsOptical Drive
Intel Pentium Dual-Core E2200 MSI 945GCM5-F V2 (FSB 1333) Inno3D Nvidia GeForce GTS 450 1GB (Cooler Ripoff) Benq DVD-R,CD-R,DVD-ROM,CD-ROM 
CoolingMonitorKeyboardPower
Intel Stock Fan MAG InnoVision 770FS Logitech Internet Pro AcBel R8 PowerII 650W 80+ 
CaseMouseMouse PadAudio
Vertu Santa Fe "Blue" Logitech Internet Pro CM Storm Pad Sound Blaster Audigy 2 ZS 
  hide details  
Reply
post #24 of 28
Quote:
Originally Posted by Speedster159 View Post

The big reveal... i'm using GoDaddy.

That's not a big reveal because you've still not told us how you're setting up these cronjobs and why you cannot run these scripts manually to test them.

Do you have shell access to your box? Or are you just using some web-based interface?
post #25 of 28
Thread Starter 
Quote:
Originally Posted by Plan9 View Post

Quote:
Originally Posted by Speedster159 View Post

The big reveal... i'm using GoDaddy.

That's not a big reveal because you've still not told us how you're setting up these cronjobs and why you cannot run these scripts manually to test them.

Do you have shell access to your box? Or are you just using some web-based interface?
Some web based interface.

I setup a cronjob to run hourly at some minute closest to the time i set it up. The minute ticker runs in intervals of 5 minutes.

Then i either receive an error email or it works perfectly*.
Sunkissed Beauty
(26 items)
 
Quirky
(12 items)
 
CPUMotherboardGraphicsRAM
Intel Core i7 3770K [ 4.5Ghz | 1.370V ] AsRock Z77 OC Formula ASUS GTX 760 DC2OC-2GD5 [ 1202/3506 ] Crucial Ballistix Elite 16GB 1866Mhz CL9 1.5V [... 
Hard DriveHard DriveHard DriveHard Drive
Crucial MX100 256GB Western Digital Caviar Blue 500GB [ WD5000AAKX ] Western Digital Caviar Blue 1TB [ WD10EZEX ] Western Digital Caviar Green 1TB [ WD10EARS ] 
Hard DriveCoolingCoolingCooling
Western Digital Caviar Green 1TB [ WD10EARS ] Corsair H100i Push&Pull Corsair SP120L PWM [ 2X] [ H100i ] Corsair SP120 PWM High Peformance [ 2X ][ H100 i] 
CoolingCoolingOSMonitor
NZXT FN 140RB [4X][Case] Cooler Master Sickleflow 120 Red [ 2X ][ Case ] Windows 10 Pro x64 Samsung B2230 
KeyboardPowerCaseMouse
Corsair Vengeance K95 RGB [ MX Brown ] Seasonic X760 NZXT Swtich 810 Black Logitech G402 
Mouse PadAudioAudioAudio
Razer Goliathus Alpha Control / Steelseries Qck... Sennheiser HD 429 Creative Inspire T7900 ASUS Xonar DGX 
OtherOther
NZXT Sentry LX NZXT Sleeved LED Kit | Orange 2M 
CPUMotherboardGraphicsOptical Drive
Intel Pentium Dual-Core E2200 MSI 945GCM5-F V2 (FSB 1333) Inno3D Nvidia GeForce GTS 450 1GB (Cooler Ripoff) Benq DVD-R,CD-R,DVD-ROM,CD-ROM 
CoolingMonitorKeyboardPower
Intel Stock Fan MAG InnoVision 770FS Logitech Internet Pro AcBel R8 PowerII 650W 80+ 
CaseMouseMouse PadAudio
Vertu Santa Fe "Blue" Logitech Internet Pro CM Storm Pad Sound Blaster Audigy 2 ZS 
  hide details  
Reply
Sunkissed Beauty
(26 items)
 
Quirky
(12 items)
 
CPUMotherboardGraphicsRAM
Intel Core i7 3770K [ 4.5Ghz | 1.370V ] AsRock Z77 OC Formula ASUS GTX 760 DC2OC-2GD5 [ 1202/3506 ] Crucial Ballistix Elite 16GB 1866Mhz CL9 1.5V [... 
Hard DriveHard DriveHard DriveHard Drive
Crucial MX100 256GB Western Digital Caviar Blue 500GB [ WD5000AAKX ] Western Digital Caviar Blue 1TB [ WD10EZEX ] Western Digital Caviar Green 1TB [ WD10EARS ] 
Hard DriveCoolingCoolingCooling
Western Digital Caviar Green 1TB [ WD10EARS ] Corsair H100i Push&Pull Corsair SP120L PWM [ 2X] [ H100i ] Corsair SP120 PWM High Peformance [ 2X ][ H100 i] 
CoolingCoolingOSMonitor
NZXT FN 140RB [4X][Case] Cooler Master Sickleflow 120 Red [ 2X ][ Case ] Windows 10 Pro x64 Samsung B2230 
KeyboardPowerCaseMouse
Corsair Vengeance K95 RGB [ MX Brown ] Seasonic X760 NZXT Swtich 810 Black Logitech G402 
Mouse PadAudioAudioAudio
Razer Goliathus Alpha Control / Steelseries Qck... Sennheiser HD 429 Creative Inspire T7900 ASUS Xonar DGX 
OtherOther
NZXT Sentry LX NZXT Sleeved LED Kit | Orange 2M 
CPUMotherboardGraphicsOptical Drive
Intel Pentium Dual-Core E2200 MSI 945GCM5-F V2 (FSB 1333) Inno3D Nvidia GeForce GTS 450 1GB (Cooler Ripoff) Benq DVD-R,CD-R,DVD-ROM,CD-ROM 
CoolingMonitorKeyboardPower
Intel Stock Fan MAG InnoVision 770FS Logitech Internet Pro AcBel R8 PowerII 650W 80+ 
CaseMouseMouse PadAudio
Vertu Santa Fe "Blue" Logitech Internet Pro CM Storm Pad Sound Blaster Audigy 2 ZS 
  hide details  
Reply
post #26 of 28
Quote:
Originally Posted by Speedster159 View Post

Some web based interface.

I setup a cronjob to run hourly at some minute closest to the time i set it up. The minute ticker runs in intervals of 5 minutes.

Then i either receive an error email or it works perfectly*.

Ok, that explains a lot.

Do you have shell access at all? It seems weird to offer you access to run shell scripts via a web interface but not allow you any kind of shell access.
post #27 of 28
Quote:
Originally Posted by Speedster159 View Post

Some web based interface.

I setup a cronjob to run hourly at some minute closest to the time i set it up. The minute ticker runs in intervals of 5 minutes.

Then i either receive an error email or it works perfectly*.

GoDaddy will give you shell access I believe, you just have to request it and if I remember correctly send them a copy of your photo id. That was a while back. May be different process than before.

Look into getting shell or ssh access to your account. Then you can run the scripts you are writing at the command line and test them without waiting for cron to run them.
White TITAN
(16 items)
 
   
CPUMotherboardGraphicsRAM
intel core i7-3770k Asus Z77 Sabertooth EVGA GTX 780 SC ACX Corsair Dominator Platinum 16GB (2x8GB) 
Hard DriveHard DriveHard DriveOptical Drive
Samsung 840 Pro  WD Black Crucial M4 LG Blueray 
CoolingOSMonitorPower
Swiftech H220 (Stock cooler on while RMA :( ) Windows 7 64bit Dell 2311h Ultrasharp x 2 Corsair AX850 
CaseMouseMouse PadAudio
Fractal Design Define R4 White (w/ Window) Logitech G700 Razer Control Edition Sound Blaster ZxR 
CPUMotherboardGraphicsRAM
Intel 980x Asus Rampage iii Extreme EVGA GTX580 SLI Patriot Viper Xtreme 12GB DDR3 2000 (PC3 16000) 
Hard DriveHard DriveHard DriveOptical Drive
120GB Corsair Force Series 3 SSD WD Caviar Black 640GB Crucial M4 128GB SSD LG Black Blu-ray Drive SATA Model UH12LS28 
CoolingCoolingCoolingCooling
XSPC RX360 and RX120 Rads Watercool HeatKiller 3.0 Limited Edition Black ... XSPC Dual Bay Res with Swiftech MCP655 Pump Silver Shining Bitspower Compression Fittings 
CoolingCoolingCoolingCooling
PrimoFlex Pro LRT Black Tubing -1/2in. ID X 3/4in. 3x Gentle Typhoon 120mm Fan 1850RPM (AP-15)  1x Noiseblocker NB-BlackSilentPro PL-2 120mm Ul... Koolance VID-NX580 Full Cover GPU Waterblock x2 
OSMonitorKeyboardPower
Windows 7 Home Premium x64 Dell U2311 Ultrasharp x2 Max Keyboard Nighthawk X8 Semi-Custom - Mechani... Antec High Current Gamer 900W 
CaseMouseMouse PadAudio
Xigmatek Elysium Black Logitech G700 Razer Goliathus Creative Sound Blaster Recon3D Fatal1ty Pro 
  hide details  
Reply
White TITAN
(16 items)
 
   
CPUMotherboardGraphicsRAM
intel core i7-3770k Asus Z77 Sabertooth EVGA GTX 780 SC ACX Corsair Dominator Platinum 16GB (2x8GB) 
Hard DriveHard DriveHard DriveOptical Drive
Samsung 840 Pro  WD Black Crucial M4 LG Blueray 
CoolingOSMonitorPower
Swiftech H220 (Stock cooler on while RMA :( ) Windows 7 64bit Dell 2311h Ultrasharp x 2 Corsair AX850 
CaseMouseMouse PadAudio
Fractal Design Define R4 White (w/ Window) Logitech G700 Razer Control Edition Sound Blaster ZxR 
CPUMotherboardGraphicsRAM
Intel 980x Asus Rampage iii Extreme EVGA GTX580 SLI Patriot Viper Xtreme 12GB DDR3 2000 (PC3 16000) 
Hard DriveHard DriveHard DriveOptical Drive
120GB Corsair Force Series 3 SSD WD Caviar Black 640GB Crucial M4 128GB SSD LG Black Blu-ray Drive SATA Model UH12LS28 
CoolingCoolingCoolingCooling
XSPC RX360 and RX120 Rads Watercool HeatKiller 3.0 Limited Edition Black ... XSPC Dual Bay Res with Swiftech MCP655 Pump Silver Shining Bitspower Compression Fittings 
CoolingCoolingCoolingCooling
PrimoFlex Pro LRT Black Tubing -1/2in. ID X 3/4in. 3x Gentle Typhoon 120mm Fan 1850RPM (AP-15)  1x Noiseblocker NB-BlackSilentPro PL-2 120mm Ul... Koolance VID-NX580 Full Cover GPU Waterblock x2 
OSMonitorKeyboardPower
Windows 7 Home Premium x64 Dell U2311 Ultrasharp x2 Max Keyboard Nighthawk X8 Semi-Custom - Mechani... Antec High Current Gamer 900W 
CaseMouseMouse PadAudio
Xigmatek Elysium Black Logitech G700 Razer Goliathus Creative Sound Blaster Recon3D Fatal1ty Pro 
  hide details  
Reply
post #28 of 28
Thread Starter 
I will try to call them later when i allocate the time. I will keep you guys informed.
Sunkissed Beauty
(26 items)
 
Quirky
(12 items)
 
CPUMotherboardGraphicsRAM
Intel Core i7 3770K [ 4.5Ghz | 1.370V ] AsRock Z77 OC Formula ASUS GTX 760 DC2OC-2GD5 [ 1202/3506 ] Crucial Ballistix Elite 16GB 1866Mhz CL9 1.5V [... 
Hard DriveHard DriveHard DriveHard Drive
Crucial MX100 256GB Western Digital Caviar Blue 500GB [ WD5000AAKX ] Western Digital Caviar Blue 1TB [ WD10EZEX ] Western Digital Caviar Green 1TB [ WD10EARS ] 
Hard DriveCoolingCoolingCooling
Western Digital Caviar Green 1TB [ WD10EARS ] Corsair H100i Push&Pull Corsair SP120L PWM [ 2X] [ H100i ] Corsair SP120 PWM High Peformance [ 2X ][ H100 i] 
CoolingCoolingOSMonitor
NZXT FN 140RB [4X][Case] Cooler Master Sickleflow 120 Red [ 2X ][ Case ] Windows 10 Pro x64 Samsung B2230 
KeyboardPowerCaseMouse
Corsair Vengeance K95 RGB [ MX Brown ] Seasonic X760 NZXT Swtich 810 Black Logitech G402 
Mouse PadAudioAudioAudio
Razer Goliathus Alpha Control / Steelseries Qck... Sennheiser HD 429 Creative Inspire T7900 ASUS Xonar DGX 
OtherOther
NZXT Sentry LX NZXT Sleeved LED Kit | Orange 2M 
CPUMotherboardGraphicsOptical Drive
Intel Pentium Dual-Core E2200 MSI 945GCM5-F V2 (FSB 1333) Inno3D Nvidia GeForce GTS 450 1GB (Cooler Ripoff) Benq DVD-R,CD-R,DVD-ROM,CD-ROM 
CoolingMonitorKeyboardPower
Intel Stock Fan MAG InnoVision 770FS Logitech Internet Pro AcBel R8 PowerII 650W 80+ 
CaseMouseMouse PadAudio
Vertu Santa Fe "Blue" Logitech Internet Pro CM Storm Pad Sound Blaster Audigy 2 ZS 
  hide details  
Reply
Sunkissed Beauty
(26 items)
 
Quirky
(12 items)
 
CPUMotherboardGraphicsRAM
Intel Core i7 3770K [ 4.5Ghz | 1.370V ] AsRock Z77 OC Formula ASUS GTX 760 DC2OC-2GD5 [ 1202/3506 ] Crucial Ballistix Elite 16GB 1866Mhz CL9 1.5V [... 
Hard DriveHard DriveHard DriveHard Drive
Crucial MX100 256GB Western Digital Caviar Blue 500GB [ WD5000AAKX ] Western Digital Caviar Blue 1TB [ WD10EZEX ] Western Digital Caviar Green 1TB [ WD10EARS ] 
Hard DriveCoolingCoolingCooling
Western Digital Caviar Green 1TB [ WD10EARS ] Corsair H100i Push&Pull Corsair SP120L PWM [ 2X] [ H100i ] Corsair SP120 PWM High Peformance [ 2X ][ H100 i] 
CoolingCoolingOSMonitor
NZXT FN 140RB [4X][Case] Cooler Master Sickleflow 120 Red [ 2X ][ Case ] Windows 10 Pro x64 Samsung B2230 
KeyboardPowerCaseMouse
Corsair Vengeance K95 RGB [ MX Brown ] Seasonic X760 NZXT Swtich 810 Black Logitech G402 
Mouse PadAudioAudioAudio
Razer Goliathus Alpha Control / Steelseries Qck... Sennheiser HD 429 Creative Inspire T7900 ASUS Xonar DGX 
OtherOther
NZXT Sentry LX NZXT Sleeved LED Kit | Orange 2M 
CPUMotherboardGraphicsOptical Drive
Intel Pentium Dual-Core E2200 MSI 945GCM5-F V2 (FSB 1333) Inno3D Nvidia GeForce GTS 450 1GB (Cooler Ripoff) Benq DVD-R,CD-R,DVD-ROM,CD-ROM 
CoolingMonitorKeyboardPower
Intel Stock Fan MAG InnoVision 770FS Logitech Internet Pro AcBel R8 PowerII 650W 80+ 
CaseMouseMouse PadAudio
Vertu Santa Fe "Blue" Logitech Internet Pro CM Storm Pad Sound Blaster Audigy 2 ZS 
  hide details  
Reply
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Web Coding
Overclock.net › Forums › Software, Programming and Coding › Coding and Programming › Web Coding › Shell 'syntax error near unexpected token'