-
as seen on Super User
- Search for 'Super User'
I am using an alias to a shellscript in postfix...
After the script that is called by the shellscript creates a directory it has no permissions at all..
#!/bin/sh
umask 002
cat | php /var/www/html/catchmymail rcvemail
result is like this:
d--------- 2 apache apache 4096 Sep 17 17:25 50
it…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I am creating an interpreter for my extension to HQ9+, which has the following extra command called V:
V: Interpretes the code as Lua, Brainfuck, INTERCAL, Ruby, ShellScript, Perl, Python, PHP in that order, and if even one error has occoured, run the HQ9+-ABC code again
most of them have libraries…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hi I have a file try.SPEC. This file contains a word "Version: 1.0.0.1" . Now I want to write a shell script which will read the version number from keyboard and insert in the file. eg- if the user enters the version number as 2.1.1.1 then the file will have Version: 2.1.1.1" instead of "Version:…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I've got a few Unix shell scripts where I need to check that certain environment variables are set before I start doing stuff, so I do this sort of thing:
if [ -z "$STATE" ]; then
echo "Need to set STATE"
exit 1
fi
if [ -z "$DEST" ]; then
echo "Need to set DEST"
exit 1
fi
which…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I need a script to automatically delete the user profile left on ubuntu 9.04, anyone please send me this mail: [email protected] thank you, please indicate how I work not fluent in shellscript.
>>> More