- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: daily script to pull reports.
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
09-12-2000 03:03 PM
09-12-2000 03:03 PM
Help.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2000 05:39 PM
09-12-2000 05:39 PM
SolutionI think we need more information:
1. The reports, are they HTML?
2. What generates the reports?
3. Why are the reports generated to /tmp in the first place? Why are they not installed in the httpd-default directory, directly.
you could try someting like this: suppose your reports are called report-yyyy-mm-dd.html, you could have the following cron entry:
0 03 * * * /bin/cp /tmp/report-*html /opt/ns-ftrack/docs-httpd-default > /dev/null 2>&1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2000 01:50 AM
09-13-2000 01:50 AM
Re: daily script to pull reports.
We do a similar thing using Ignites wonderful print_manifest command, and then publish it on our Netscape fasttrack server on the intranet for users to view daily. On each server we run this cronjob/script (using a .netrc file to ftp automatically);
#! /bin/sh
#
# FTP Server Manifest and backup reports to orion Web Server
#
DATE=`date +%d%m%y`
MANIFEST_OUTPUT=`hostname`_manifest
DESTINATION_HOST=orion
DESTINATION_CONFIGDIR=/opt/ns-ftrack/docs-httpd-default/system_config
DESTINATION_BCKRPTS=/opt/ns-ftrack/docs-httpd-default/backup_reports/`hostname`
/opt/ignite/bin/print_manifest > /tmp/$MANIFEST_OUTPUT
ftp $DESTINATION_HOST <
cd $DESTINATION_CONFIGDIR
put $MANIFEST_OUTPUT
cd $DESTINATION_BCKRPTS
put daily_backup.out daily_backup.out.$DATE
quit
EOF
mv /tmp/daily_backup.out daily_backup.old
And from anyones browser they can just type into the location; orion and this picks up the /opt/ns-ftrack/docs-httpd-default/index.html file which allows users to select backup reports or print_manifest output.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2000 01:42 PM
09-13-2000 01:42 PM
Re: daily script to pull reports.
cd /location
mv xxxx /newplace/xxxx
mv yyyy /newplace/yyyy
or for all files
cd /location
find . -depth -print|cpio -ocdumvB /newplace
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2000 06:49 AM
09-14-2000 06:49 AM
Re: daily script to pull reports.
find . -depth -print|cpio -ocdumvB > /newpl