Linux - NewbieThis 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!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi all, i want to start a shell scripts(which generate traffic to test my network) at remote linux hosts from single linux local host.. If i start script at remote host through ssh, all traffic are sending from my local host also. It will create burden on my local host. If i terminate SSH connection, it stopping the script at remote host. Also i need to do ssh to all my remote hosts.
nothing to do with networking. moved to Linux - Newbie.
As far as your question goes, for the part about it terminating remotely on disconnect, then that's something "screen" is very useful for, check that out. The first things you mention I don't really understand. How does all the traffic come over ssh??
Last edited by acid_kewpie; 11-13-2010 at 07:31 AM.
I tried cronjob but no success as cronjob is new for me. i added entry in crontab like
1 * * * * /usr/local/bin/script.sh (i kept script in /usr/local/bin folder and in script i'm just opening "xterm -e ping 192.168.x.x" . here in remote host what i want is , open xterm and ping from that.
but when give reboot in crontab (1 * * * * /sbin/reboot), system rebooted properly. any suggestion here.
Hi all, i want to start a shell scripts(which generate traffic to test my network) at remote linux hosts from single linux local host.. If i start script at remote host through ssh, all traffic are sending from my local host also. It will create burden on my local host. If i terminate SSH connection, it stopping the script at remote host. Also i need to do ssh to all my remote hosts.
Is there any best way to do it?
How to start script at remote host.
1. U can using "NC" TCP/UDP listner http://linux.die.net/man/1/nc (nc -l 1234 > filename.out )
2. Cron started every min your (shell script) and looks file output. Reads command from file, clears file(echo -n > filename.out)
3. if there is something then start your traffic script.
thnx
Last edited by smart_shell; 11-23-2010 at 10:09 PM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.