Hi help need with setup cron command

3 posts / 0 new
Last post
#1 Wed, 10/21/2009 - 05:57
mojolive

Hi help need with setup cron command

Hi , well i am totally new to this and I need help. I am running virtualmin just bought ( oct-21-2009 ) so i guess it is the newest update if that matters.

My problem.I am trying to understand how to get a cron command to work. i have the command that works in my web browser but when i put it into virtualmin or i should say the webmin tab on virtualmin, to create a cron job.. I get lost..

I am trying to get ffmpeg player to work with "jomsocal" for joomla 1.5 and jomsocal needs to have a cronjob run to convert the videos.. so that is why i want to use a cron job

ffmpeg is installed in /usr/bin

it works from the web command i have..

so what i do it the following:

Create a new scheduled cron job ( I make sure it is the root user) i guess root will run everything.

Job is ACTIVE..

Command ( I do not know what to put here)

Input to command ( I do not know what to put here)

but here is the command that I use to put into my web browser url and it works..

http://mydomain.com/rob/?option=com_community&task=cron

can anyone tell me what the coron command would be that i need to use and where to put it PLEASE:)

sorry i am so new at this and i just do not understand.

thank you and thank you for your time..

Wed, 10/21/2009 - 09:38
andreychek

Yeah, some of those parameters are confusing.

I would ignore "Input to command" -- that's only needed if the command otherwise asks for user input after it's launched.

I would put your command and all of it's parameters in the "Command" column above.

Now, what you're putting into your browser isn't a command, it's a URL.

So it sounds like you're asking, "how can I call a URL from within cron".

To do that, you can use a command such as this:

/usr/bin/wget -q -O /dev/null http://mydomain.com/rob/?option=com_community&task=cron

-Eric

Thu, 10/22/2009 - 09:19
mojolive

hi Eric.. well got it working. thank you again for your time.

Topic locked