- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- FTPD and SITE EXEC
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
08-20-2001 11:46 AM
08-20-2001 11:46 AM
FTPD and SITE EXEC
I am coming from a none HP-UX environment using ftp for this.
My final intent is to start sqlldr to populate an oracle database on the HP-UX box.
Any ideas would be greatly appreciated.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2001 02:55 AM
08-21-2001 02:55 AM
Re: FTPD and SITE EXEC
http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0xa2b3d06ed8c8d4118fef0090279cd0f9,00.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2001 03:30 AM
08-21-2001 03:30 AM
Re: FTPD and SITE EXEC
1. man netrc
Steps required.
1. create a user ID and give them access to run cron jobs in /usr/lib/cron/cron.allow
2. in the users home directory build a .netrc file. The init macro should perform all of the commands you need. I.E.
bin
prompt
lcd /somedir
cd /someotherdir
mput *.log
mget *.Z
bye
3. Build a script to do any before the ftp and after the ftp work that is required, then launch ftp within the script.
The biggest mistake people make with a netrc file is permissions. A minimum of -rw------- (0600) and preferrably -r-------- (0400) should be set, and of course the owner must be set properly.
I find that this method is more fool proof than trying to directly script ftp commands and easier to maintain. It also allows you to issue the ftp command as the user, and see exactly what it is doing.
Regards,
Shannnon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2001 10:21 AM
08-21-2001 10:21 AM
Re: FTPD and SITE EXEC
Let me explain further -
1. I have site exec working as of today. (Don't know what's different from yesterday's testing, but it does work.)
2. I am coming in through ftp from an IBM mainframe.
3. There are several steps to the IBM job stream.
4. When I execute the script on the unix box, the mainframe job waits for the script to finish before continuing on the the next step.
5. I want the script to kick off on unix but return to the mainframe job immediately after starting the script.
6. Event if I send the script command to the background the mainfram job waits for any child process to finish as well.
Any ideas? I have nohupped myself to death on this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2001 07:19 AM
08-23-2001 07:19 AM
Re: FTPD and SITE EXEC
1. Call a script that creates a cron job for the script I want to run.
2. This appears to create a child process for the cron entry but ends when the entry is made.
3. Control is returned to the mainframe job stream as the ftp job has finished.
There may be a better way to do this, but since I am totally new to HP-UX, in my ingnorance this is the best I have come up with.
Thanks for your help and input.
dl