Tagged Questions
0
votes
0answers
100 views
DocumentRoot Sniffing in BASH
I have a quick question about Apache DocumentRoot sniffing using a BASH script. I have created a script that seems to work fine on my Ubuntu system. I have loosely tested the file on OS X and that ...
0
votes
1answer
104 views
Bash config files being read in contradiction to `man bash`
While trying to determine the differences between .bashrc and .bash_profile I notice that .bashrc is never read, and that .bash_profile is only read from SSH, but not from PHP. This seems to ...
2
votes
2answers
262 views
Scripting htdigest -c /path/to/file/$user $user $user in Bash
this is what I want to be able to script with a password in variable $pass.
htdigest -c /etc/apache2/pw/$user $user $user
At the moment it asks me to manually enter a password, this is not going to ...
4
votes
1answer
714 views
Bash, remove lines containing string with grep
This is currently deleting the whole contents of the file in question:
#!/bin/bash
rpc_port="9201";
dir="/etc/apache2/ports.conf"
cat $dir | grep -v "Listen $rpc_port" > $dir
The file contents:
...
1
vote
5answers
503 views
Start/stop program from website
I have some users on my machine that I allow to run small Mumble voice servers. I would like for them to be able to start/stop their voice server from a website (being ran by Apache). With the current ...