0
votes
0answers
51 views

which program is really running?

I am running a self-compiled version on python2.7, --prefix=$HOME, so as not to interfere with the standard installation of python2.6 (on Ubuntu 10.04). Had some problem importing the ssl modules, ...
1
vote
1answer
71 views

Writing a script to tell which users are currently typing? [closed]

I'm working on a lab for a cyber-security class and need to find out when certain users are communicating with each other (through named pipes). The users use: python gameProgram.py And then that ...
0
votes
2answers
2k views

Rename a question mark (?) in filenames

With rename it is possible to bulk change filenames. I managed to get rid of all + with this command and replace them with underscores: rename 's/\+/_/g' * I could change normal letters like a to ...
1
vote
0answers
371 views

Is it possible to run an interactive script before shutdown Linux in a GNOME session?

I wrote some utility interactive scripts and want them run before shutdown. For a terminal-login session, I just add some entry in ~/.bash_logout, my login shell is bash BTW, which works. However, I ...
0
votes
3answers
716 views

Redirecting Command output to file

This seems so simple when doing it from command line but I'm not able to accomplish it inside a script. I am trying to put output of following command into a text file: CMD= mysql -uroot -psecret -e ...
2
votes
2answers
458 views

Log Files from bash script output

I have a script that runs (this works fine). I'd like to produce logfiles from its output and still show it on screen. I have this command that creates three files from this blog: ((./fk.sh ...
2
votes
2answers
717 views

curl not uploading file to ftp

I am using curl to upload a file to ftp server. The same script is working on another system, but on this one after connecting to ftp it is not doing anything and connection times out. The detailed ...
2
votes
2answers
4k views

How do I go into root and have it change my prompt?

I am using ubuntu-10.04 and bash. I want to go into root and have it change my prompt to underlined red characters to reflect that I am in root. At the bash prompt, if I type: $ sudo bash then I go ...
2
votes
1answer
581 views

Don't know why this small shell script wont work

I'm trying to make a small script to start up gunicorn for a python website I'm making. I have modified the script found at https://github.com/benoitc/gunicorn/blob/master/examples/gunicorn_rc ...
2
votes
1answer
328 views

Filename tab completion within bash backtick environment

I'm on Ubuntu 10.04 and I've ran into a little bit of a snag with bash completions within backticks. Here's an example to illustrate: I save streaming URL:s to my radio-stations in text files, and I ...
1
vote
1answer
290 views

checking which window is active in a Linux script

In a Linux bash script I can do several things with windows using wmctrl but I'm trying to figure out how to determine what the currently active window is.
2
votes
2answers
10k views

Uninstall Git completely on Ubuntu?

I installed Git on Ubuntu Lucid (latest) manually as following. cd ~/tmp wget http://kernel.org/pub/software/scm/git/git-1.7.0.6.tar.gz tar -xzvf git-1.7.0.6.tar.gz cd git-1.7.0.6.tar.gz ...
4
votes
2answers
2k views

bash history is appended, but histappend is off

I'm on ubuntu 10.4 and my shell is bash. When I open several gnome terminals and close them history is properly appended. When I enter shopt it says among other things: histappend off Can ...