Web Hosting Forum | Lunarpages


*
Welcome, Guest. Please login or register.
Did you miss your activation email?



Login with username, password and session length
October 25, 2014, 11:49:13 PM

Pages: [1]   Go Down
  Print  
Author Topic: help formatting directory parameter for cron  (Read 1137 times)
lukecd
Newbie
*
Offline Offline

Posts: 2


« on: August 12, 2007, 10:57:22 PM »

i'm trying to use cron (albeit in a hack sort of way) to execute a server command that i need to do only once. ideally i would telnet in, but need to figure out another way to make it work. the command i'm executing is below

xgettext --language=PHP /public_html/neht50/wp-content/themes/victoria/*.php

now that directory structure exists in my system but i get this back from cron

xgettext: error while opening "/public_html/neht50/wp-content/themes/victoria/*.php" for reading: No such file or directory

i'm guessing that the path i'm providing needs to be formatted some other way.

any ideas?
Logged
MrPhil
Senior Moderator
Berserker Poster
*****
Offline Offline

Posts: 5895



« Reply #1 on: August 13, 2007, 07:09:53 AM »

Try

xgettext --language=PHP /home/account_name/public_html/neht50/wp-content/themes/victoria/*.php

Remember that cron will email to the given address any output to stdout and stderr. Also, if xgettext is not in one of the standard command directories you may need to give its full path.
Logged

Visit My Site

E-mail Me
  
-= From the ashes shall rise a sooty tern =-
Pages: [1]   Go Up
  Print  
 
Jump to: