- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Can't open /dev/tty to prompt for more media.
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
01-31-2008 12:42 PM
01-31-2008 12:42 PM
background: every night a cron job runs to backup folders to another drive. The size of the folders being backed up is 3369128 as reported by `du -s' and the free space on the destination drive is 20680464 as reported by `bdf'. When cron runs the tar command, it prints the name every file that is going into it... I think that if i could just suppress that output that it may fix the issue. the email i get from cron is usually about 1mb.
Thanks for all your help!
Cheers!
GM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2008 12:49 PM
01-31-2008 12:49 PM
Re: Can't open /dev/tty to prompt for more media.
Does the script running from cron send the output to std out ? If so just redirect to a log file .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2008 02:28 PM
01-31-2008 02:28 PM
Re: Can't open /dev/tty to prompt for more media.
below is the script that is running. I'm sure that it is sending output to std out and that is the problem.
Thanks for your help!
--Begin Script--
#!/bin/ksh
# backup script for Home directories
# create txt file containing start time
echo `date` >/backup/start_home.txt
# Remove old backup of home directory
echo Removing old home backup
rm -f /backup/home.tar
# Backup home directory
echo TAR home directory
cd "/backup" && exec time tar -cvf /backup/home.tar /home
# Approx run times from testing
# real 1:15:51.4
# user 7.5
# sys 9.1
# create txt file containing end time
echo `date` >/backup/end_home.txt
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2008 06:05 PM
01-31-2008 06:05 PM
Re: Can't open /dev/tty to prompt for more media.
Have you tried putting quotes around the tar
e.g. exec time 'tar -cvf home.tar /home > /tmp/tar_out.txt'
You didn't give any details about your problems redirecting the output so I'm guessing that the command parser was redirecting either exec or time's output.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2008 07:47 PM
01-31-2008 07:47 PM
Solutioncd "/backup" && exec time tar -cf /backup/home.tar /home
Or you can redirect tar's stderr output to /dev/null:
cd "/backup" && exec time tar -cvf /backup/home.tar /home 2>/dev/null
A cron job will always send email when there is anything for stdout or stderr.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2008 12:22 PM
02-04-2008 12:22 PM
Re: Can't open /dev/tty to prompt for more media.
Cheers!
GM.