Valhalla Legends Archive

Programming => Web Development => Topic started by: Imperceptus on September 06, 2007, 04:33 PM

Title: cron jobs
Post by: Imperceptus on September 06, 2007, 04:33 PM
I have a website script that requires me to compile a source file for use as a cron later on. uhm. I'm a bit clueless how to compile this source. its extension is .c. so i figured it was just needing a c compiler. but I haven't had any luck. what do I do?
Title: Re: cron jobs
Post by: Camel on September 06, 2007, 04:48 PM

scott@blackdiamond ~ $ echo "int main() {}" > file.c
scott@blackdiamond ~ $ gcc file.c
scott@blackdiamond ~ $ ls
a.out  file.c
scott@blackdiamond ~ $ ./a.out
scott@blackdiamond ~ $
Title: Re: cron jobs
Post by: Imperceptus on September 06, 2007, 05:05 PM
alright i will try that, but where should file.c reside in relation to my cygwin folder?
Title: Re: cron jobs
Post by: Camel on September 06, 2007, 08:38 PM
...
Title: Re: cron jobs
Post by: Joe[x86] on September 09, 2007, 11:39 PM
Use a cd command to change directory to it's absolute path.