Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 11-28-2003, 02:37 AM   #1
LQ Newbie
Registered: Nov 2003
Location: Sauerland, Germany
Distribution: Suse 8.2
Posts: 6

Rep: Reputation: 0
How to create a tiny script and make it start automatically

Hello there!

I want to make a script to execute the netstat-command on my kde-desktop automatically at system-start

Can anybody show me how to make this script and how to make it start automatically?

Best regards
Old 11-28-2003, 04:29 AM   #2
Senior Member
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 17.3+18.3+19.0, MX-17
Posts: 4,211

Rep: Reputation: Disabled
Here is what I'd do:

Create a file with an editor of your choice, containing
netstat <here any options etc.>
and save it under a <convenient name>. Then
chmod 777 <convenient name>
Now comes the dichotomy . System startup is not KDE startup. For system startup you would have to call <convenient name> from the init files of the system (probably /etc/initrc or some such, right befor the call of kdm).

On your KDE desktop you would right-click -> new -> icon(?, choose something sensible), in the menu then popping up you have to assign a picture and more vital /path/to/your/<convenient name> command.

After saving, you should test it, output goes probably to console#0, i.e. press <Alt><Crtl><F1> to look for it, getting back to KDE is pressing <Alt><Crtl><F7>.

Alternatively you would have to look for something like a directory called autorun or some such in KDE (possibly KDE-Command center) and draw a link from your new icon to it, then the script starts right after KDE is up and running.

This is in part guesswork, try other reasonable venues and good luck .
Old 11-28-2003, 04:48 AM   #3
LQ Newbie
Registered: Nov 2003
Location: Sauerland, Germany
Distribution: Suse 8.2
Posts: 6

Original Poster
Rep: Reputation: 0
many thx

Well thank you JZL240I-U,

i am going to try it....

Best regards


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to create a bash script to automatically disown a process. jon_k Linux - Software 5 06-19-2005 06:53 AM
need help with a script to automatically create a subdirectory verbatim Linux - Newbie 6 04-26-2005 01:51 AM
how to make named start automatically at startup nazzymac *BSD 3 04-20-2004 11:58 AM
How can I make my NIC card working automatically at my os start? exper Linux - Hardware 1 11-12-2003 10:50 PM
How can i make xfree86 start automatically at boot? KiLLaWaBBiT Linux - Software 1 04-07-2003 11:06 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:03 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration