- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- shell script program Fail
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
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
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
02-27-2012 07:15 PM
02-27-2012 07:15 PM
shell script program Fail
Hi I have a problem with shell script program, Several of our programs in oracle call a function that produces a line of command that is executed from the application server to the database server using the remsh command.
Given the complexity of the command line, using a shell script to run the remsh depending on the user, the shell script is attached in this post.
This line of Shell, which shows the parameters that are driving the Shell script, these parameters will form the command line to execute the remsh:
echo "$FECHA $USERNAME (1)$1 -(2) $2 -(3) $3 -(4) $4" >> /oracle/remsh.log
An example of such line command follows:
10/02/2012 10:33 oranew (1)multi2 -(2) -l -(3) ora9i -(4) . ./rep antewill;/home/produ/pat_ordenes_WEB.sh 07/01/2012 07/01/2012 36 \lp_ana_tec1 ANTEWILL antewill/gaby >/var/tmp/pat_ordenes0$LOGNAME.std 2>/var/tmp/pat_ordenes0$LOGNAME.err &
That's the command line that fails intermittently.
Anybody help me??
Thanks a LOT
VB
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2012 09:38 PM
02-27-2012 09:38 PM
Re: shell script program Fail
>That's the command line that fails intermittently.
How is it failing? What's in /var/tmp/pat_ordenes0$LOGNAME.err?
>10/02/2012 10:33 ...
Any reason you are using the chauvinistic European style dates instead of ISO 8601?:
http://en.wikipedia.org/wiki/ISO_8601
It sorts better if you have YYYY-MM-DD.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2012 08:03 AM
03-01-2012 08:03 AM
Re: shell script program Fail
HI the /var/tmp/pat_ordenes0$LOGNAME.std log file is empity.
Attach the last 100 lines to remsh.log file.
Thanks a lot
Regards
VB
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2012 12:29 PM
03-01-2012 12:29 PM
Re: shell script program Fail
>Attach the last 100 lines to remsh.log file.
The commands are there but no errors.