- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: scripting
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
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
08-08-2002 09:30 AM
08-08-2002 09:30 AM
I attach a script that download an Oracle utility. Download is ok, but the loop after the FTP session doesn't work! If the loop is before the FTP session, it is ok! Any explanation?
Thanks,
Troy.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2002 09:36 AM
08-08-2002 09:36 AM
Re: scripting
do
echo "<${I}>"
done
As coded, this is looking for files named "1", "2", and "3" that are, presumably executeable.
HTH
mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2002 09:41 AM
08-08-2002 09:41 AM
Re: scripting
manaus :/ # ./file
<1>
<2>
<2>
<3>
in either case, supply the set -x output for a quicker investigation..
Later,
Bill
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2002 09:45 AM
08-08-2002 09:45 AM
Re: scripting
Remove the FTP session and run the script again. Without FTP I get:
linus:/tmp/tr #./patchsetlogs
+ PATCHSET_FTP=oracle-ftp.oracle.com
+ PATCHSET_UTIL=patchsets.sh
+ PATCHSET_DIR=apps/patchsets/PATCHSET_COMPARE_TOOL
+ PATCHSET_USER=anonymous
+ PATCHSET_PASS=troyan.krastev@ricoh-usa.com
+ + basename ./patchsetlogs
WORK_DIR=/tmp/patchsetlogs
+ INST_DIR=/cpapps
+ [ ! -d /tmp/patchsetlogs ]
+ cd /tmp/patchsetlogs
+ chmod 777 /tmp/patchsetlogs/patchsets.sh
+ echo <1>
<1>
+ echo <2>
<2>
+ echo <2>
<2>
+ echo <3>
<3>
Wich is wat I expect with FTP too.
Troy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2002 09:49 AM
08-08-2002 09:49 AM
Re: scripting
linus:/tmp/tr #./patchsetlogs
+ PATCHSET_FTP=oracle-ftp.oracle.com
+ PATCHSET_UTIL=patchsets.sh
+ PATCHSET_DIR=apps/patchsets/PATCHSET_COMPARE_TOOL
+ PATCHSET_USER=anonymous
+ PATCHSET_PASS=troyan.krastev@ricoh-usa.com
+ + basename ./patchsetlogs
WORK_DIR=/tmp/patchsetlogs
+ INST_DIR=/cpapps
+ [ ! -d /tmp/patchsetlogs ]
+ [ ! -d /tmp/patchsetlogs ]
+ cd /tmp/patchsetlogs
+ ftp -i -n
+ 0<<
open oracle-ftp.oracle.com
user anonymous troyan.krastev@ricoh-usa.com
passive
cd apps/patchsets/PATCHSET_COMPARE_TOOL
get patchsets.sh
close
bye
EOF
# make the utility executable
chmod 777 /tmp/patchsetlogs/patchsets.sh
# run the utility against every Instance
for I in 1 2 2 3
do
echo "<>"
done
Passive mode on.
linus:/tmp/tr #
Troy.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2002 09:59 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2002 10:07 AM
08-08-2002 10:07 AM
Re: scripting
Troy.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2002 12:26 PM
08-08-2002 12:26 PM
Re: scripting
Thanks
Zafar