Hi,
I've got a shell script for installing a binary. In this script I set the
binary to mode 4755. When I 'ls' the binary from within the shell script I
see that it has the setuid bit set. When I exit the shell script, the binary
is no longer setuid.
I can setuid the binary from outside the she
Hi,
I've been trying to do a "for loop" in a "here document" but the variable is
never assigned to the items in the list.
e.g.
#!/bin/sh
sh <<-EOF
for word in hello world
do
echo word = $word
done
EOF
output is:
word =
word =
Can someone tell me why this doesn't work? I've been going