Dear Group,

I am newbie to shell script programing. I was trying to write a script
which will compile all the .cpp file in a folder as mention below:

for f in *.cpp; do gc++ $f; done;
mv *.cpp /data/jay/success
mv *.out /data/jay/success

And this is working fine, but the issue is, if any .cpp file is having
compilation error, my batch execution getting stuck. Can anybody help
me out to ignore the compilation error and jump to next file
compilation? And also, how to move all the error files with log file
to a different directory.

Thanking you with anticipation of your earliest reply.

...Jay

_______________________________________________
ilugd mailinglist -- ilugd@lists.linux-delhi.org
http://frodo.hserus.net/mailman/listinfo/ilugd
Next Event: http://freed.in - September 28-29, 2007
Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi 
http://www.mail-archive.com/ilugd@lists.linux-delhi.org/

Reply via email to