Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

This is my first script, and really need some help

Here is what I have done so far.

ifconfig tap0 netmask up
sleep 10

It works great when I run it from a terminal, but.......

I need a terminal to open upon startup and then run the above commands.

When "/home/marius/Dynamips/IE/./" run it actually launches the app.

Now, can one send commands to the app in the terminal?

I ask allot, it would be awesome if someone can help


share|improve this question
Do you want to run the script in the background when the computer starts, or in a terminal when you login? – theotherreceive Aug 25 '09 at 15:06
Hi Thanks for the help In a terminal when I login – Marius_vt Aug 25 '09 at 15:10

In order to run your script when you log in, add a call to it at the end of your ~/.bash_profile file.

For more information see the Invocation section of the Bash man page.

share|improve this answer

The startup applications settings are in the system > preferences menu. You can add a new entry here for your script.

To run the script from a terminal enter the command as:

gnome-terminal --command /home/marius/Dynamips/IE/
share|improve this answer

You really don't need to run a script that opens a terminal -- You can just run your script in the background using the System -> Preferences menu.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.