RE: Running remote scripts
Put the ssh calls inside a Perl script using the Expect module for a very nice package indeed. Gerardo -Original Message- Sent: Monday, May 14, 2001 11:06 AM To: Multiple recipients of list ORACLE-L ssh is your friend. oli [EMAIL PROTECTED] wrote Hi All, Env. is TRU64 Unix and Oracle 7.3.4 This is a standby server configuration. I want to run certain scripts(on secondary server), based on some incident on primary server. And on top of that, every thing has to be fully automated(using cron). I got stuck at a point where I need to run some script on secondary without explicitly logging on secondary server. I tried using rsh, but it executes just one single command. I would appreciate if some one can guide me on this. TIA, Rajesh -- Oliver Artelt Oracle Certified DBA cubeoffice GmbH Co.KG # jordanstrasse 7 # 39112 magdeburg telefon: +49 (0)391 6 11 28 10 # telefax: +49 (0)391 6 11 28 19 email: [EMAIL PROTECTED] # web: http://www.cubeoffice.de -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Oliver Artelt INET: [EMAIL PROTECTED] Fat City Network Services-- (858) 538-5051 FAX: (858) 538-5051 San Diego, California-- Public Internet access / Mailing Lists To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Molina, Gerardo INET: [EMAIL PROTECTED] Fat City Network Services-- (858) 538-5051 FAX: (858) 538-5051 San Diego, California-- Public Internet access / Mailing Lists To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).
Re: Running remote scripts
Rajesh, You can't run interactive commands using rsh. You should be able to put all your commands into a script(s) and execute those. Otherwise try rlogin. Regards, David A. Barbour Rajesh Dayal wrote: Hi All, Env. is TRU64 Unix and Oracle 7.3.4 This is a standby server configuration. I want to run certain scripts(on secondary server), based on some incident on primary server. And on top of that, every thing has to be fully automated(using cron). I got stuck at a point where I need to run some script on secondary without explicitly logging on secondary server. I tried using rsh, but it executes just one single command. I would appreciate if some one can guide me on this. TIA, Rajesh -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Rajesh Dayal INET: [EMAIL PROTECTED] Fat City Network Services-- (858) 538-5051 FAX: (858) 538-5051 San Diego, California-- Public Internet access / Mailing Lists To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: David A. Barbour INET: [EMAIL PROTECTED] Fat City Network Services-- (858) 538-5051 FAX: (858) 538-5051 San Diego, California-- Public Internet access / Mailing Lists To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).
Re: Running remote scripts
ssh is your friend. oli [EMAIL PROTECTED] wrote Hi All, Env. is TRU64 Unix and Oracle 7.3.4 This is a standby server configuration. I want to run certain scripts(on secondary server), based on some incident on primary server. And on top of that, every thing has to be fully automated(using cron). I got stuck at a point where I need to run some script on secondary without explicitly logging on secondary server. I tried using rsh, but it executes just one single command. I would appreciate if some one can guide me on this. TIA, Rajesh -- Oliver Artelt Oracle Certified DBA cubeoffice GmbH Co.KG # jordanstrasse 7 # 39112 magdeburg telefon: +49 (0)391 6 11 28 10 # telefax: +49 (0)391 6 11 28 19 email: [EMAIL PROTECTED] # web: http://www.cubeoffice.de -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Oliver Artelt INET: [EMAIL PROTECTED] Fat City Network Services-- (858) 538-5051 FAX: (858) 538-5051 San Diego, California-- Public Internet access / Mailing Lists To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).
Running remote scripts
Hi All, Env. is TRU64 Unix and Oracle 7.3.4 This is a standby server configuration. I want to run certain scripts(on secondary server), based on some incident on primary server. And on top of that, every thing has to be fully automated(using cron). I got stuck at a point where I need to run some script on secondary without explicitly logging on secondary server. I tried using rsh, but it executes just one single command. I would appreciate if some one can guide me on this. TIA, Rajesh -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Rajesh Dayal INET: [EMAIL PROTECTED] Fat City Network Services-- (858) 538-5051 FAX: (858) 538-5051 San Diego, California-- Public Internet access / Mailing Lists To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).