Web Hosting Forum | Lunarpages
News: October 6, 2008 - Submit Your Site for the October 2008 Site of the Month!
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
October 07, 2008, 04:48:10 PM


Login with username, password and session length


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

Posts: 2


« on: August 12, 2007, 11: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
Quantum Encyclopedia Writer
*****
Online Online

Posts: 3381



« Reply #1 on: August 13, 2007, 08: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

Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.6 | SMF © 2006-2008, Simple Machines LLC

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM