Generating A Script
I have a firewall script that actually isn't a script. This thing won't run and seeing as it 's the first time I've dont something like this problems have come up. The current script is run like this:
Code:
[root@mun-175-25 lorenzo]# ls Code:
#!/bin/sh |
Hi.
Try using #!/bin/bash instead of #!/bin/sh Dave |
If it helps, when I'm in class I always start my scripts off like this:
Code:
#!/bin/csh -f |
I receive the same error as before with #!/bin/bash.
With #!/bin/csh -f i get Code:
[root@mun-175-25 lorenzo]# chmod +x rules |
If you run 'ps' one of the processes should be the shell you're currently using, e.g.
Code:
[dave@cronus ~]$ ps Dave |
Same error as before
Code:
[root@mun-175-25 lorenzo]# ps |
What do you get from 'which bash' ?
|
Code:
[root@mun-175-25 lorenzo]# which bash |
All times are GMT -5. The time now is 04:29 PM. |