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
Forums
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
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
11-01-2000 07:20 AM
11-01-2000 07:20 AM
And if $1,$2,$3 are not there, where did $4 come from ?
exec 8< $APPL_TOP/custom/security/apps.pswd
read -u8 first_line
read -u8 second_line
read -u8 third_line
# Concurrent request id
CONREQ=$4
#sqlplus $UserPass @$INVC_TOP/sql/MMRE_POC_GEN $CONREQ
sqlplus $first_line/$second_line@$third_line @$INVC_TOP/sql/MESG_POC_GEN $CONREQ
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2000 07:39 AM
11-01-2000 07:39 AM
Solutionwhen a line begins with . the following command (script) is executed within the shell (without . it's executed in a subshell) so that ie. exported varaiables are known to the shell.
The exec <8 $APPL_TOP/custom/security/apps.pswd
opens an input file descriptor 8 (standard file descriptors are: 0=stdin, 1=stdout, 2=stderr) from the file $APPL_TOP/custom/security/apps.pswd
The read -u8 .... then reads it's input from file descriptor 8.
In my opinnion the $4 must come as the commandline parameter 4 of the shell script.
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2000 07:40 AM
11-01-2000 07:40 AM
Re: shell
The '-u' option of the read command specifies the file descriptor from which to read. In this case, that is '8' as opened by the 'exec' command. Normally a 'read' would gather data from descriptor-0 (stdin).
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2000 07:41 AM
11-01-2000 07:41 AM
Re: shell
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2000 07:42 AM
11-01-2000 07:42 AM
Re: shell
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2000 07:46 AM
11-01-2000 07:46 AM
Re: shell
the webserver once again was misdemeaning
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2000 08:02 AM
11-01-2000 08:02 AM
Re: shell
u8 indicates the file descriptor 8, which has been set to your apps file.
$4 indicates the fourth positional parameter passed to the script from the command line.