- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: need help with embedded script within remote s...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-31-2006 08:52 AM
тАО01-31-2006 08:52 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-31-2006 09:35 AM
тАО01-31-2006 09:35 AM
Re: need help with embedded script within remote shell script
rsh remotehost "at -f script now"
to start the remote job without waiting.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-31-2006 06:34 PM
тАО01-31-2006 06:34 PM
Re: need help with embedded script within remote shell script
You could start scripts in the background using the ampersant sign (&). For example:
for i in srv1 srv2 srv3
do
rsh ${i} .... &
done
, or for the readability do it with functions:
function remote_script
{
#do the things you want to do
)
for i in srv1 srv2 srv3
do
remote_script &
done
Cheers,
Renarios
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-01-2006 02:14 AM
тАО02-01-2006 02:14 AM
Re: need help with embedded script within remote shell script
You could have it copy and execute the
script.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-01-2006 08:48 AM
тАО02-01-2006 08:48 AM
Re: need help with embedded script within remote shell script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-01-2006 04:43 PM
тАО02-01-2006 04:43 PM
Re: need help with embedded script within remote shell script
for server in "server1 server2 server3"
do
remsh -l root ${server} -n "script" 1>&- 2>&- &
done
It will do it. &- is used to close error and output mode. Else it will interact with other shell execution.
--
Muthu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-01-2006 07:00 PM
тАО02-01-2006 07:00 PM
SolutionI tried the following and it works OK
function rem_dbcheck
{
ssh ${i} -n /home/oracle/rene/dbstatus.sh
}
for i in srv1 srv2 srv3 srv4
do
rem_dbcheck 1>/tmp/db.log 2>&1 &
done
Cheers,
Renarios
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-30-2010 12:21 PM
тАО11-30-2010 12:21 PM