Valhalla Legends Forums Archive | Web Development | cron jobs

AuthorMessageTime
Imperceptus
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?
September 6, 2007, 9:33 PM
Camel
[code]
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 ~ $
[/code]
September 6, 2007, 9:48 PM
Imperceptus
alright i will try that, but where should file.c reside in relation to my cygwin folder?
September 6, 2007, 10:05 PM
Camel
...
September 7, 2007, 1:38 AM
JoeTheOdd
Use a [tt]cd[/tt] command to change directory to it's absolute path.
September 10, 2007, 4:39 AM

Search