Programming and posix - April 2002
April 3, 2002
Solution Symposium
Page 67
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