| 1 |
#!/bin/sh |
| 2 |
MobAg=/tmp/MobileAgent.$$ |
| 3 |
# direct script to mobile agent file |
| 4 |
cat > $MobAg |
| 5 |
# execute agent concurrently |
| 6 |
gawk -f $MobAg $MobAg > /dev/null & |
| 7 |
# HTTP header, terminator and body |
| 8 |
gawk 'BEGIN { print "\r\nAgent started" }' |
| 9 |
rm $MobAg # delete script file of agent |