HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Saving script file
Operating System - HP-UX
1825764
Members
2075
Online
109687
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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-20-2007 09:29 AM
03-20-2007 09:29 AM
Saving script file
Hi all
Bear with me as i new to scripting but so far the admin but no longer working in my company save the results from a script thats been run into the memory buffer and sends it to the printer but I need to save the results from the script into a folder naming itself from a 6 digit input that i've already inputted when the script been running. What commands do i need to insert at the end of the script to perform this ? Any help would be great. I could attach the script in here for the geru's to plonder and give me some advice once i get back to work
Will
Bear with me as i new to scripting but so far the admin but no longer working in my company save the results from a script thats been run into the memory buffer and sends it to the printer but I need to save the results from the script into a folder naming itself from a 6 digit input that i've already inputted when the script been running. What commands do i need to insert at the end of the script to perform this ? Any help would be great. I could attach the script in here for the geru's to plonder and give me some advice once i get back to work
Will
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-20-2007 04:58 PM
03-20-2007 04:58 PM
Re: Saving script file
Before you send the results to the printer, you need to copy it to the file:
mkdir -p $folder_name
cp output $folder_name/results
If you want to capture all output from the script, you will have to wrap that script with another to save the output. And the outer script must get the 6 digit directory name.
mkdir -p $folder_name
cp output $folder_name/results
If you want to capture all output from the script, you will have to wrap that script with another to save the output. And the outer script must get the 6 digit directory name.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Support
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP