- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Problems regarding fixed file size on Unix
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
тАО03-21-2011 06:05 AM
тАО03-21-2011 06:05 AM
Problems regarding fixed file size on Unix
How can i restrict writing the data beyond fixed file size?
i.e. suppose my file is of 1024 bytes. So, i want to restrict writing the data only of 1024 bytes. Beyond 1024 bytes no data to be written on that file. How can I do this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-21-2011 06:18 AM
тАО03-21-2011 06:18 AM
Re: Problems regarding fixed file size on Unix
Why do you care? Is there some actual
problem which you are trying to solve?
Discarding your previous thread on this topic
may not be the best way to accumulate useful
information.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-21-2011 06:37 AM
тАО03-21-2011 06:37 AM
Re: Problems regarding fixed file size on Unix
dd if=/home2/kamlesh/ of=kk.txt count=1024
for creating kk.txt file of 1024 byte.
Now, i want to restrict the data upto 1024 bytes only. How can I do that?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-21-2011 07:11 AM
тАО03-21-2011 07:11 AM
Re: Problems regarding fixed file size on Unix
> dd if=/home2/kamlesh/ of=kk.txt count=1024
You need to add a block size; the default is 512. A read of the 'dd(1)' manpages might be beneficial.
Depending upon your objective, you could change the permissions of the file, once created, to disallow writes to it.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-21-2011 07:28 AM - last edited on тАО07-12-2011 11:34 AM by Kevin_Paul
тАО03-21-2011 07:28 AM - last edited on тАО07-12-2011 11:34 AM by Kevin_Paul
Re: Problems regarding fixed file size on Unix
Steven replied...>>> Discarding your previous thread on this topic
may not be the best way to accumulate useful
information.
Yeah, that was my knee-jerk reaction as well.
So i looked back for the topic and found:
http://h30499.www3.hp.com/t5/System-Administration/Creating-Fixed-size-file-on-unix/m-p/2794533#M80618
This is from 'way-back' and I think that's the topic Steven referred to ann myself and others replied to.
So I think what happened is that 'kamlesh33' at first continued an old conversation. This was noticed by the 'powers that be' and a new topic was forced.
I for one, and others, had not noticed the old topic and we made an effort to help.
Our replies and work appear to be deleted without a warning or bounce-back.
Why not just leave well enough alone, or LOCK the old topic.
I find it extremely disrespectful for my work to be thrown away without cause or recourse.
I don't need that treatment.
I'm pissed! (not at kamlesh33)
Hein.
:-(.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-21-2011 08:09 AM
тАО03-21-2011 08:09 AM
Re: Problems regarding fixed file size on Unix
Possibly by setting up the file security so only a specific application (possibly SETUID) can write to the file and it will know about your size limitation.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-21-2011 09:16 AM
тАО03-21-2011 09:16 AM