How to start wireshark at every time when I login
Assalam o Alaikum!
I am using fedora 14. I want to start wireshark at login time. For this I edit in /etc/rc.d/rc.local and add the command to start wireshark. But it is not working what is solution please guide me. Thanks! |
see the bash man page and look what's happening during login
|
use crontab or cron intead. It can be configured to start any program on proper time.
|
Thanks for replies. How to see bash man page to see whats going on during login time? I mean normally we can see man page as --help or man mkdir? Please tell me how can i see bash man page thanks...
|
why would you want to start wireshark? What do you actually mean? you can't start a GUI program in rc.local, you would need to start it when a user logs in. It doesn't sound like a good think to actually want to do... worth backing up and describing what problem you're trying to solve, not how you wish to solve it.
|
Thanks. this is new info for me that we can't start GUI pgm at start via rc.local. Actually I am working on task to develop a script to turn on automatically 4 OSs systems, assign them interfaces, routes and turn on wireshark in two middle OSs. I hope you understand what I am trying to do. Currently I am doing this via /home/user/.bashrc and add wireshark command but problem is that it is not what I want. Via this It turns on wireshark very earlier and can't do any thing else with out closing wireshark. My task is completed but I want to make it as easier as possible. For this I need your helps...
|
I really don't think wireshark is the right tool for whatever you actually need to do... maybe tshark could be useful, or tcpdump, but a gui... I can't see it.
|
Okay, good opinions. I really appreciate your helps. Actually tcpdump is also using but this is assigned some other members. Ok thank you so much. But I still want to know if some one needs to open GUI pgms at start then how can he do it?
|
under gnome there's a location like ~/.config/autostart where you can run code when gnome loads.
|
Okay I will try it. Thanks
|
e.g.:
Code:
[schneidz@hyper ~]$ cat .bash_profile |
Quote:
|
Quote:
|
why would you run nautilus EVERY time you create a bash instance anywhere? there are proper mechanisms to do it, and they should be used. your way, I'm fairly sure you'd get a new instance of wireshark (without root access so only able to read capture files, not live network traffic) every time you opened a new terminal window etc.
|
Assalam o Alaikum!
I am still unable to start gui applications at login time. What I did: [zohaib_shaikh@Zohaib ~]$ cd .config/ [zohaib_shaikh@Zohaib .config]$ cd autostart [zohaib_shaikh@Zohaib autostart]$ ls qstart.desktop wireshark.sh I have made wireshark.sh executable script. containing command wireshark. but no result. plz help.... |
All times are GMT -5. The time now is 12:05 PM. |