- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Remote command:warning: here-document at line 5 de...
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
03-01-2017 11:22 PM
03-01-2017 11:22 PM
Remote command:warning: here-document at line 5 delimited by end-of-file (wanted `EOF1')
Hi ,
The script works fine in server.but while run via remote command operation it is showing end -of file wanted
the script:
export ORACLE_HOME=/u01/app/oracle/product/12.1.0/DB
export PATH=$ORACLE_HOME/bin
export ORACLE_SID=<dbname>
sqlplus -s $user/$pwd@$ORACLE_SID <<-EOF
select name from v\$database ;
exit;
EOF
it works fine in server ..but in tool i got warning as EOF
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2017 07:11 AM
03-02-2017 07:11 AM
Re: Remote command:warning: here-document at line 5 delimited by end-of-file (wanted `EOF1')
When you use the '-' at the end of the here document it is expecting the EOF to be indented via a single TAB.
For example:
ftp machine <<- EOF cd dirName put file1 quit EOF
If you do NOT use the '-' character, then the EOF has to start at the beginning of the line.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2017 08:10 AM
03-02-2017 08:10 AM
Re: Remote command:warning: here-document at line 5 delimited by end-of-file (wanted `EOF1')
> The script works fine in server.but while run via remote command
> operation it is showing end -of file wanted
What, exactly, does "run via remote command operation" mean to you?
As usual, showing actual commands with their actual output can be more
helpful than vague descriptions or interpretations.
> it works fine in server ..but in tool i got warning as EOF
"in tool"???
What is/are the system(s) involved here?
uname -a
What, exactly, are you doing? What, exactly, happens when you do it?