Sponsored Content
Top Forums UNIX for Advanced & Expert Users How to open a file that is archived Post 302173957 by Tanvirk on Sunday 9th of March 2008 06:33:18 AM
Old 03-09-2008
How to open a file that is archived

Hello,
1)Can anybody please tell me that how can i open a file that is archived.
Like say i have a file say 1.txt archived inside 1.tar.
2)So how can i open this file to perform operations on this file (1.txt) using "open" system call and perform other system calls like "read" and "write" ,but without extracting that file(1.txt).

Regards,
TANVIR
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

file activity (open/closed) file descriptor info using KORN shell scripting

I am trying to find a way to check the current status of a file. Such as some cron job processes are dependent on the completion of others. if a file is currently being accessed / modified or simply open state I will wait until it is done being processed before attempting the next process on that... (3 Replies)
Discussion started by: Gary Dunn
3 Replies

2. Shell Programming and Scripting

tar :: rename the file after archived

Hi, I am archived two files using tar. Then I tried to extract the file in Windows. But only one file extracted. Other file is NOT extracted as the UNIX file name NOT compatible with Windows platform (In my case semicolon operator included in file name). Is it possible to rename the file (... (1 Reply)
Discussion started by: thambi
1 Replies

3. Linux

Deleteing archived files

Hi, I need to remove files that are in archive directory and which are old. I can make use of find command to search for files which are older by number of days. But the problem is there are sub directories in directory 'archive' like 'sub1' 'sub2' 'sub3'. Now all files which are in... (4 Replies)
Discussion started by: ramu_indian
4 Replies

4. Shell Programming and Scripting

Avoid files being archived

hi all, i want to write a shell script which can automatically touch my all files within a folder in an interval of 90 days ...so that i can avoid them being archived. I don't want to manually touch the all files instead i want an automated shell script to do this. Thanks in advance, Om (3 Replies)
Discussion started by: koti
3 Replies

5. Programming

Some how the open(file,flag, acc) returns 0 and write to the screen, instead of the file ???

I am out of idea what to do to resolve the problem! I need to use the open(file, for.., access) function to write a file. Never have the situation like that: it is return 0 - zero. As a result all write(..) going to the screen! What the problem it could be? I do not even know... (2 Replies)
Discussion started by: alex_5161
2 Replies

6. Red Hat

cannot set user id: Resource temporarily unavailable (not open file/open process related)

First post, sorry to be a bother but this one has been dogging me. I have a process user (java application server) that trips a resource limit every couple weeks and need help finding what limit we're hitting. First, this is what's running: This is the error when jobs are run or the... (0 Replies)
Discussion started by: Katahdin
0 Replies

7. Solaris

Before I delete any file in Unix, How can I check no open file handle is pointing to that file?

I know how to check if any file has a unix process using a file by looking at 'lsof <fullpath/filename>' command. I think using lsof is very expensive. Also to make it accurate we need to inlcude fullpath of the file. Is there another command that can tell if a file has a truely active... (12 Replies)
Discussion started by: kchinnam
12 Replies

8. Shell Programming and Scripting

Newbie.. Find if a file exists and open, if not create the desired file..

Hey all, I'm brand new to script writing, I'm wanting to make a script that will ask for a file and then retrieve that file if it exists, and if it doesn't exist, create the file with the desired name, and I'm completely stuck.. so far.. #! bin/bash echo "Enter desired file" read "$file" if ... (5 Replies)
Discussion started by: Byrang
5 Replies

9. UNIX for Dummies Questions & Answers

Archived Emails in UNIX Executable Files

Hello, A while back someone"archived" my emails for me, so I didn't have to worry about my email account filling up with emails. I need to get back into those emails and view them. When I opent the folder it has several files. The largest being an "mbox", which I am assuming has all of... (3 Replies)
Discussion started by: shaffer1921
3 Replies

10. UNIX for Beginners Questions & Answers

Need Help with Archived UNIX/Linux IBM (UniVerse) Database

I have an old database that ran on UNIX/LINUX that was archived and stored years ago. We currently run on Windows and have no way to open/view this database or recover data. Does anyone have any experience or know how to recover? All I know is that it was a UniVerse IBM product. Thanks! (2 Replies)
Discussion started by: Chantelle
2 Replies
DBENCH(1)						      General Commands Manual							 DBENCH(1)

NAME
dbench - Measure disk throughput for simulated netbench run SYNOPSIS
dbench [options]numclients tbench [options]numclientsserver tbench_srv [options] DESCRIPTION
This manual page documents briefly the dbench and tbench benchmarks. This manual page was written for the Debian GNU/Linux distribution because the original program does not have a manual page. However, it has fairly easy to read source code. Netbench is a terrible benchmark, but it's an "industry standard" and it's what is used in the press to rate windows fileservers like Samba and WindowsNT. Given the requirements of running netbench (60 and 150 Windows PCs all on switched fast ethernet and a really grunty server, and some way to nurse all those machines along so they will run a very fussy benchmark suite without crashing), these programs were written to open up netbench to the masses. Both dbench and tbench read a load description file called client.txt that was derived from a network sniffer dump of a real netbench run. client.txt is about 4MB and describes the 90 thousand operations that a netbench client does in a typical netbench run. They parse client.txt and use it to produce the same load without having to buy a huge lab. dbench produces only the filesystem load. It does all the same IO calls that the smbd server in Samba would produce when confronted with a netbench run. It does no networking calls. tbench produces only the TCP and process load. It does the same socket calls that smbd would do under a netbench load. It does no filesys- tem calls. The idea behind tbench is to eliminate smbd from the netbench test, as though the smbd code could be made infinately fast. OPTIONS
The dbench program takes a number, which indicates the number of clients to run simultaneously. It can also take the following options: -c client.txt Use this as the full path name of the client.txt file (the default is /usr/share/dbench/client.txt). -s Use synchronous file IO on all file operations. -t TIME set the runtime of the benchmark in seconds (default 600) -D DIR set the base directory to run the filesystem operations in -x enable xattr support, simulating the xattr operations Samba4 would need to perform to run the load -S Use synchronous IO for all directory operations (unlink, rmdir, mkdir and rename). The tbench program takes a number, which indicates the number of clients to run simultaneously, and a server name: tbench_srv should be invoked on that server before invoking tbench. tbench can also take the following options: -T option[,...] This sets the socket options for the connection to the server. The options are a comma-separated list of one or more of the follow- ing: SO_KEEPALIVE, SO_REUSEADDR, SO_BROADCAST, SO_NODELAY, SO_LOWDELAY, SO_THROUGHPUT, SO_SNDBUF=number, SO_RCVBUF=number, SO_SND- LOWAT=number, SO_RCVLOWAT=number, SO_SNDTIMEO=number,and SO_RCVTIMEO=number. See socket(7) for details about these options. The tbench_srv can only take one option: -T option[,...] as documented above. SEE ALSO
/usr/share/doc/dbench/README contains the original README by Andrew Tridgell which accompanies the dbench source. AUTHOR
This manual page was originally written by Paul Russell <prussell@alderaan.franken.de>, for the Debian GNU/Linux system (but may be used by others). Modified and updated by Mattias Nordstrom <nordstrom@realnode.com>. June 18, 2005 DBENCH(1)
All times are GMT -4. The time now is 11:00 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy