- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Starting informix using remsh from another ser...
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
тАО10-29-2005 04:35 AM
тАО10-29-2005 04:35 AM
The script is shown below: Note that $INFORMIXDIR is set to /opt/informix for both user1 and informix user env variable in serverB
synchtbl.sh
==============================================
#!/bin/sh
su informix -c "$INFORMIXDIR/bin/oninit"
sleep 5
su informix -c "echo 'delete from table1'|dbaccess informixdb"
su informix -c "echo \"load from \"/tmp/table1.db\" insert into table1\"|dbaccess informixdb"
su informix -c "/opt/informix/bin/onmode -ky"
echo "Finished Importing DB"
==============================================
From serverA, I wish to execute the script remotely using the following command below:
remsh serverB "/home/user1/synctbl.sh"
However, I get the following error:
"Could not access INFORMIXDIR /usr/informix"
What could be my problem? In serverA and serverB, the same user1 and informix are created with the same UIDs. From serverA, I can successfully do rcp and other remsh commands on serverB.
Thanks in advance for the help and adice!
--Ken
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-29-2005 04:44 AM
тАО10-29-2005 04:44 AM
Re: Starting informix using remsh from another server
$INFORMIXDIR is set to /opt/informix
and
Could not access INFORMIXDIR /usr/informix
It is at first /opt, later /usr
Did you set INFORMIXDIR to the correct value?
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-29-2005 04:59 AM
тАО10-29-2005 04:59 AM
Re: Starting informix using remsh from another server
When you try to execute the script remotely from serverA using remsh as user1, I get the error
"Could not access INFORMIXDIR /usr/informix"
The above error message is not a typo error.
Hope you could provide further insights to my problem.
Regards,
--Ken
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-29-2005 05:10 AM
тАО10-29-2005 05:10 AM
Re: Starting informix using remsh from another server
It is telling you, that INFORMIXDIR is /usr/informix and cannot be found.
Try to remsh and echo the variable.
Notice, the man page says:
If the remote shell is /usr/bin/sh, the following command line sets up
the environment for the remote command before executing the remote
command:
remsh otherhost . .profile 2>&- \; command
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-29-2005 05:18 AM
тАО10-29-2005 05:18 AM
Re: Starting informix using remsh from another server
remsh serverB "/usr/bin/echo $INFORMIXDIR"
remsh serverB . .profile 2>&- \; "/usr/bin/echo $INFORMIXDIR"
and compare.
Now try
remsh serverB . .profile 2>&- \; "/home/user1/synctbl.sh"
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-29-2005 06:38 AM
тАО10-29-2005 06:38 AM
SolutionThese are the bare minimum you need:
INFORMIXDIR=
INFORMIXSERVER=
ONCONFIG=
PATH=$PATH:$INFORMIXDIR/bin
btw dont forget to update the statistics for your tables every so often.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-29-2005 01:26 PM
тАО10-29-2005 01:26 PM
Re: Starting informix using remsh from another server
Thanks again guys!