- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Error append to new log file.
Operating System - HP-UX
1752818
Members
4092
Online
108789
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
Discussions
Discussions
Forums
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
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
тАО06-13-2007 12:13 PM
тАО06-13-2007 12:13 PM
Error append to new log file.
hi, can anyone explain on this ?
just don't understand on the below,
below are my backup scripts :
echo "FBACKUP Start on `date`" >> /home/applprod/fbkp.log
fbackup -f /backup/prod -i /prod -I /tmp/index
echo "FBACKUP Completed on `date`" >> /home/applprod/fbkp.log
and the permission for fbkp.log is as below :
-rw-rw-rw- 1 oraprod dba 0 Jun 7 16:40 fbkp.log
but i still can't append to this log, pls look at my /var/mail/root
/home/oraprod/dbackup.sh: /home/applprod/fbkp.log: Cannot create the specified file.
fbackup(1004): session begins on Thu Jun 14 02:30:00 2007
fbackup(3024): writing volume 1 to the output file /backup/prod
fbackup(3055): total file blocks read for backup: 165949524
fbackup(3056): total blocks written to output file /backup/prod: 166114792
/home/oraprod/dbackup.sh[3]: /home/applprod/fbkp.log: Cannot create the specified file.
thanks
ng
just don't understand on the below,
below are my backup scripts :
echo "FBACKUP Start on `date`" >> /home/applprod/fbkp.log
fbackup -f /backup/prod -i /prod -I /tmp/index
echo "FBACKUP Completed on `date`" >> /home/applprod/fbkp.log
and the permission for fbkp.log is as below :
-rw-rw-rw- 1 oraprod dba 0 Jun 7 16:40 fbkp.log
but i still can't append to this log, pls look at my /var/mail/root
/home/oraprod/dbackup.sh: /home/applprod/fbkp.log: Cannot create the specified file.
fbackup(1004): session begins on Thu Jun 14 02:30:00 2007
fbackup(3024): writing volume 1 to the output file /backup/prod
fbackup(3055): total file blocks read for backup: 165949524
fbackup(3056): total blocks written to output file /backup/prod: 166114792
/home/oraprod/dbackup.sh[3]: /home/applprod/fbkp.log: Cannot create the specified file.
thanks
ng
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-13-2007 01:41 PM
тАО06-13-2007 01:41 PM
Re: Error append to new log file.
The ability to create a new file is determined by the write permission of the directory --- not the file itself. Make sure that the effective user of the script has read and search permission on all of the directories above the applprod directory and is also able to write to the applprod directory.
If it ain't broke, I can fix that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-13-2007 01:41 PM
тАО06-13-2007 01:41 PM
Re: Error append to new log file.
Hi Ng,
"/home/oraprod/dbackup.sh: /home/applprod/fbkp.log: Cannot create the specified file."
As you can see that there has an error in create the logfile,
Please double check on the file path and the directory permission of the logfile.
GOOD LUCK!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-13-2007 05:10 PM
тАО06-13-2007 05:10 PM
Re: Error append to new log file.
>Clay: The ability to create a new file is determined by the write permission of the directory
Right. If applprod owns that directory, he can create the file and later root can write to it.
(You show it exists, so it must be an issue with permissions on each directory in the file's path.)
So you need to show:
$ ll -d /home/applprod/
(Hopefully you don't have to look at /home/. :-)
Right. If applprod owns that directory, he can create the file and later root can write to it.
(You show it exists, so it must be an issue with permissions on each directory in the file's path.)
So you need to show:
$ ll -d /home/applprod/
(Hopefully you don't have to look at /home/. :-)
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.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP