Jump to content
Sign in to follow this  
kez

> Cron Job - How To Run .exe,

Recommended Posts

salam... ni first time aku buat cron job. nak tanya adakah apa yg aku buat ni betul atau salah.

ni command yg aku buat...

*/1 * * * * ilrun /var/mcs/ServerUpdate/MCServerUpdaterGlobalIP.exe

apa yg aku nak buat ialah run .exe tu supaya dia leh donlod file dari master server. tp masalahnya dekat log file aku leh nampak dia run tp dekat folder yg sepatutnya dia masuk tu.. xde plak update..

Dec 4 16:35:57 localhost crond[18449]: (CRON) STARTUP (V5.0)

Dec 4 16:36:01 localhost crond[18469]: (root) CMD (ilrun /var/mcs/ServerUpdate/MCServerUpdaterGlobalIP.exe)

Dec 4 16:37:01 localhost crond[18655]: (root) CMD (ilrun /var/mcs/ServerUpdate/MCServerUpdaterGlobalIP.exe)

rasanya mcm command aku tu salah kot untuk run .exe.. sape ade idea...

thanks

Share this post


Link to post
Share on other sites

salam... ni first time aku buat cron job. nak tanya adakah apa yg aku buat ni betul atau salah.

ni command yg aku buat...

*/1 * * * * ilrun /var/mcs/ServerUpdate/MCServerUpdaterGlobalIP.exe

apa yg aku nak buat ialah run .exe tu supaya dia leh donlod file dari master server. tp masalahnya dekat log file aku leh nampak dia run tp dekat folder yg sepatutnya dia masuk tu.. xde plak update..

Dec 4 16:35:57 localhost crond[18449]: (CRON) STARTUP (V5.0)

Dec 4 16:36:01 localhost crond[18469]: (root) CMD (ilrun /var/mcs/ServerUpdate/MCServerUpdaterGlobalIP.exe)

Dec 4 16:37:01 localhost crond[18655]: (root) CMD (ilrun /var/mcs/ServerUpdate/MCServerUpdaterGlobalIP.exe)

rasanya mcm command aku tu salah kot untuk run .exe.. sape ade idea...

thanks

run .exe? boleh ke? pakai emulator apa2 tak nak run binary windows ni? anyway penah ke run mende nih cara manual sebelum setkan cronjob tu?

Share this post


Link to post
Share on other sites

thanks teruna suci..

dah setel dah problem ni...

solution:kena tambah /usr/bin kat depan ilrun tu...

ni complete command dia...

*/1 * * * * /usr/bin/ilrun /var/mcs/ServerUpdate/MCServerUpdaterGlobalIP.exe

Edited by kez

Share this post


Link to post
Share on other sites

pergh camner plak kalo masuk bab nk run kan script dari host, untuk transfer data sacara bot ke site lain ....

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...