- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: tar /dev/tty request when run with at
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
Discussions
Discussions
Forums
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
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
тАО05-21-2003 03:36 AM
тАО05-21-2003 03:36 AM
Using tar interactively I can create archives >2Gb, but when I put it in a script run with at the archive stops at 2Gb with a message to tar's standard output: "Can't open /dev/tty to prompt for more media.".
Is there a way to prevent tar from (pseudo)requesting media from terminal? (when run interactively it doesn't really prompt it simply runs on).
Thanks
Vladimir
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-21-2003 03:38 AM
тАО05-21-2003 03:38 AM
Re: tar /dev/tty request when run with at
This is a know issue when interaction is needed.
Please do the following :
tar cvf .. ...
Best Regs David
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-21-2003 03:44 AM
тАО05-21-2003 03:44 AM
Re: tar /dev/tty request when run with at
No, you can't do it because I suppose that your script is run from crontab or something similar which is not attached to any tty
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-21-2003 03:50 AM
тАО05-21-2003 03:50 AM
SolutionDo
echo ulimit | at now + 1 minute
to see the setting.
You can hopefully change the setting in your script. If not, you will have to change /var/adm/cron/.proto accordingly. See the at(1) and proto(4) manual pages for details.
Note that ulimit details depend on the type of shell. See the "#! ..." line, if any, at the beginning of your script.
Depending on your OS version and patch-level, you may also run into an old at(1)/.proto bug.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-21-2003 04:11 AM
тАО05-21-2003 04:11 AM
Re: tar /dev/tty request when run with at
Yes, the ulimit was the problem; in the interactive environment it was set to unlimited but at has a different default setting.
(redirecting standard input to anything doesn't work, tar wants the terminal, anyway).
Problem solved.
Thanks.