LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-24-2012, 04:59 AM   #1
rytec
Member
 
Registered: Mar 2009
Location: Belgium
Distribution: Ubuntu server 12.04 LTS / Raspbian Wheezy
Posts: 64

Rep: Reputation: 7
script for replacing files and stop/starting proces


I'm wondering if it is possible to create a script which can be run by a simple commando in Ubuntu server commandline which will stop a proces, overwrites some files, start the proces again on it's own pc.

But is it also possible to stop a proces on another linux box by connecting to it with telnet or ssh from this ubuntu server, overwrite some files and start the proces again? everything is in the internal network.
 
Old 01-24-2012, 10:43 PM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,356

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
These are certainly both possible, but you'll have to give us a lot more info ie exactly what do you want to do AND what have you done/tried so far?
 
Old 01-25-2012, 02:26 AM   #3
rytec
Member
 
Registered: Mar 2009
Location: Belgium
Distribution: Ubuntu server 12.04 LTS / Raspbian Wheezy
Posts: 64

Original Poster
Rep: Reputation: 7
OK,

I already have made a script which works on the ubuntu server itself, so this part is already OK.
But in this same script I like to send a command to my linux satellite decoder in the network that it has to stop softcam "/etc/init.d/stoftcam stop" then overwrite some files, and starts the softcam again "/etc/init.d/softcam start"
I can write files to this box from within the ubuntu server but I do not know how to send this command to the decoder.
do you need to start a terminal session too or can it be done by the same script? I think I have to create a sort of Telnet session to this decoder ip address?
 
  


Reply



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
[SOLVED] Bash script to stop all proftpd connections (even if they are transfering files) pjgm Programming 8 08-23-2011 03:57 PM
shell script to search all the files starting with name failed.* and send via email masood24 Linux - Newbie 4 12-13-2009 05:06 PM
Stop X from starting automatically dafatdude Linux - Software 1 07-26-2005 09:30 PM
Bash backup script - If multiple files starting with a exist problem demoncheese Programming 2 07-29-2004 10:47 PM
mp3 files - replacing blank spaces with _ script? mymojo Linux - Newbie 4 12-08-2003 03:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

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