- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Automating Process
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
04-23-2003 08:01 AM
04-23-2003 08:01 AM
Automating Process
I have a report writing tool called Intellegent Query (IQ) that I use to run a specific report after a user runs certain programs within the primary application used on our box. I need to find a way to make the IQ program run the report for the user without the user having to actually go through the process of running it manually. Then I need to have the result ftp'd to another machine. Is it possible to automate this process?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2003 08:06 AM
04-23-2003 08:06 AM
Re: Automating Process
ftp -ivn << EOF
open hostname
user username password
do all your ftp commands here
..
bye
EOF
If you can send the example in detail with script then it will be easy for us to give more.
Thanks
Zafar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2003 08:10 AM
04-23-2003 08:10 AM
Re: Automating Process
yes, definately possible.
I.E.
Your app launches with
/apps/stuff/myapp.bin
The tool is
/apps/stuff/mytool.bin
Make a wrapper script to launch both.
vi wrapper.sh
#!/bin/sh
/apps/stuff/myapp.bin $*
/apps/stuff/mytool.bin
# end of the line #
Then have the user launch the wrapper instead of the app and tool.
As for automagic FTP, that is definately possible. Just search the forums for automate ftp and I'm sure you will fine hundreds of pages to help you.
Regards,
Shannon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2003 08:11 AM
04-23-2003 08:11 AM
Re: Automating Process
Zafar already posted the details on the ftp. The script is the best way to setup your environment variables. When cron runs a process, it does not exectute the .profile for the login ID, so any special PATH requirement or environment variables particular to your report writer need to be created prior to running the report.
HTH
mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2003 08:15 AM
04-23-2003 08:15 AM
Re: Automating Process
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2003 08:55 AM
04-23-2003 08:55 AM
Re: Automating Process
Create a script. Just edit a file, stick "#!/bin/ksh" in as the first line, then add the command you use to run the report, then the ftp bit that Zafar posted. You should probably add a test to ensure that the report ran before ftp'ing it, may something like:
if [[ -f "filename" ]]; then
(ftp stuff here)
fi
where "filename" is the name of the file containing the report.
Then, you can run the script manually as well as have it run automatically from cron.
HTH
mark