Programming and posix - February 2001

February 10, 2001
Solution Symposium
Page 66
hp e3000
programming
and posix
shell programming
Automate steps with a shell script hwcgi.sh
#!/bin/sh
gcc -c helloworld.c
ar -rv libhw.a helloworld.o
gcc -c hwcgimain.c
gcc -o hwcgi hwcgimain.o -L. -lhw
Execute permission required to execute
shell/iX> chmod u+x hwcgi.sh
shell/iX> hwcgi.sh
Special scripts: /etc/profile and .profile