Does .exe make it a bin file that will not be run cronjob?

General Macro Scheduler discussion

Moderators: JRL, Dorian (MJT support)

Post Reply
buffalobill
Newbie
Posts: 2
Joined: Wed Feb 08, 2006 11:06 pm

Does .exe make it a bin file that will not be run cronjob?

Post by buffalobill » Wed Feb 08, 2006 11:16 pm

I am allowed to run cronjobs, however I placed an .exe file from visual basic (after compiling) and my conjob told me no no to binary. Is that normal to allow no bin runs. If that is true, then my question is if I purchase the mjt script, I assume I have to buy and run the compiler to use it on the cron job. Will it then be identified as a BIN and my cronjob will not accept it.
All I really need to do is from a single website, use ftp or php or something so the one site can grab the stats file from 1,000 other sites each 24 hours. Then auto generate some reports. The cronjob would be great for that. The mjt script could get all the files for me, but it appears it may not work cause it may need to be BIN. Does anyone know of a php script that will pull 1 file from 1,000 sites each night via cron.

By the way the visual baisc using the microsoft transfer control INET did the trick, but I couldn't get past the mandatory NO NO to BIN runs via cron.

Thanks

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Thu Feb 09, 2006 8:36 am

Cron is a Unix/Linux system. Clearly a Windows .EXE like a VB exe or a Macro Scheduler EXE won't run on a Linux system. Or are you talking about a Windows version of cron? Sounds like whatever you are using to schedule the exe has a limitation on executables, but since I don't know about the program mysteriously referred to here as cronjob I have no idea how to help you. Could you either explain what system you are using to schedule it or refer to the doco for that system. Most people schedule via Macro Scheduler or Windows Task Scheduler.

Sounds like an issue with your scheduler, not the compiled script anyway.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

buffalobill
Newbie
Posts: 2
Joined: Wed Feb 08, 2006 11:06 pm

Post by buffalobill » Thu Feb 09, 2006 3:19 pm

Trying to run a cronjob on a linux, using the normal cpanel cronjob access that they normally provide with the cpanel on the web not the hard drive..

Need to have the program on the web activate each 24 hours by cron and pull one file from 1,000 websites into the same server that will be running the script/php/exe necessary to do this.

Of course I can go to the site which is http://www.hrfsbo.biz/getafile.exe
and it will activate the program and place the file that it got from another web onto my desktop. So it activates but I assume it is my browser causing it to work and my windows XP system.

I need the cron to activate the program and have the files appear on the server running the cron job and each 24 hours. Basically a central stats collection system. One the files are collected it is a simple matter to process them.

Of course we know this is running on my desktop and not on the web when we go http://www.hrfsbo.biz/getafile.exe

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Thu Feb 09, 2006 3:49 pm

Macro Scheduler is a Windows application. The EXEs it creates will only run on Windows operating systems. They won't run on Linux.

When you "run" a .exe on the web you aren't actually running it on the web. What you are doing is, in one transparent process, downloading it to your hard drive, on your Windows machine and then running it there.

If you ask your Linux web server machine to cron a Windows exe it will try to run it on itself - under Linux. It won't work. It won't even recognise the file.

But what exactly do you really want to do? You want the Macro Scheduler (or some other Windows program) exe to run once a day or something? Use Macro Scheduler or Windows Task Scheduler on your Windows system. No good trying to schedule it to run on a Linux machine.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

Post Reply
cron
Sign up to our newsletter for free automation tips, tricks & discounts