09-08-2009
First off, I'd like to state that i do NOT have a problem. I just want to achieve a better understanding. So you don't need to tell me workarounds, as i have already found one.
Quote:
Originally Posted by
thegeek
Before that why you would want to tar and check the integrity, better you can do by reading all the files !!
This is exactly what i was expecting tar to do: read all the files.
Quote:
Originally Posted by
methyl
The parameter after "-f" is the archive filename. A value of "-" when there is no pipeline has no sensible meaning
Sorry, but this is simply not true: the dash as a filename is signifying <stdout> and if i use a redirection or a pipeline to manipulate tars output further should make no difference.
In fact (as i have stated in my first post) the command worked the way i wrote it when i used a real file (instead of /dev/null) as output destination. It is this inconsistency - the command reading all the files when a real file is the destination and not working, when the destination is /dev/null - i want to understand.
bakunin
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi ,
I am importing some table from /dev/null i dont understand what is /dev/null
Sorry i am new to UNIX
sam71 (3 Replies)
Discussion started by: sam71
3 Replies
2. Solaris
Please help urgently.
I need to setup up some sort of service on a solaris server on a port.
I dont need it do anything special, anything that is sent to this port from an external server should be dump to /dev/null or a flat file..
Can you help urgently? (1 Reply)
Discussion started by: frustrated1
1 Replies
3. Solaris
Hi, Anyone can help
My solaris 8 system has the following
/dev/null , /dev/tty and /dev/console
All permission are lrwxrwxrwx
Can this be change to a non-world write ??
any impact ?? (12 Replies)
Discussion started by: civic2005
12 Replies
4. Shell Programming and Scripting
when do you use the path /dev/null (3 Replies)
Discussion started by: webmunkey23
3 Replies
5. UNIX for Dummies Questions & Answers
Hello,
I am working on a script to measure the read performance of a busybox environment. The logical choice is to use a command line like:
(time cp * /dev/null) 2> /tmp/howlong.txt
Ah, the rub is cp or /dev/null will only accept a single file at a time.
The result in the txt file is and... (1 Reply)
Discussion started by: stevesmo
1 Replies
6. Shell Programming and Scripting
Hello,
I'm trying to send the error output of a 'cat' operation to /dev/null like this:
cat /dirA/dirB/temp*.log > /dirA/dirB/final.log 2>/dev/null
This works perfectly in a terminal, but not when placed in a script.
If there are no files matching temp*.log the script outputs an error... (7 Replies)
Discussion started by: Nils88
7 Replies
7. UNIX for Dummies Questions & Answers
How are these two different? They both prevent output and error from being displayed. I don't see the use of the "&"
echo "hello" > /dev/null 2>&1
echo "hello" > /dev/null 2>1 (3 Replies)
Discussion started by: glev2005
3 Replies
8. Shell Programming and Scripting
I apologize if this question has been answered else where or is too elementary.
I ran across a KSH script (long unimportant story) that does this:
if ; then
CAS_SRC_LOG="/var/log/cas_src.log 2>&1"
else
CAS_SRC_LOG="/dev/null 2>&1"
fithen does this:
/usr/bin/echo "heartbeat:... (5 Replies)
Discussion started by: jbmorrisonjr
5 Replies
9. Shell Programming and Scripting
I'm using an text-to-speech synthesis in a script, and I need to redirect it's output to /dev/null
how can I do that ? And how to redirect the stream to his normal output then (sound card ) ?
thankx (2 Replies)
Discussion started by: firelink
2 Replies
10. Shell Programming and Scripting
Friends have the following problem
a search may not find anything which would correct example:
ls -ltr *prueba.txt | nawk '{ print $9 }' > Procesar.dat 2>/dev/null
When he finds nothing gives me the following error
ls: prueba.txt: No such file or directory
because 2> / dev / null... (4 Replies)
Discussion started by: tricampeon81
4 Replies
LEARN ABOUT DEBIAN
barrybackup
BARRYBACKUP(1) General Commands Manual BARRYBACKUP(1)
NAME
barrybackup - Barry Project's backup program for the BlackBerry handheld
SYNOPSIS
barrybackup [-?][-d]
DESCRIPTION
barrybackup is a GUI application for backing up and restoring Blackberry handheld databases.
The application allows for filtering of databases for both backup and restore, so not all databases need to be backed up at once, nor all
restored.
Backups and configuration files are stored by default in the user's home directory, under ~/.barry/backup/PIN. This destination can be
changed in the config dialogs, per device.
The backup files are compressed tarballs containing specially named files for each record of the databases.
OPTIONS
-d --debug-output Enables low level protocol debug output written to stdout/stderr.
--display=DISPLAY
Specify which X display to use.
-? --help Show summary of options.
-h, --help
Show summary of options.
TAR FORMAT
Backups are stored in tar format, compressed with gzip. Backup files are named with the following pattern:
PIN-YYYYMMDD-HHMMSS[-tag_name].tar.gz
The tag name is optional and is used to name a particular backup.
Each record is appended to the tar file using the following pattern for the filename:
DBname/RecordID RecordTypeID
That is, the database name is used as the directory name, and the filename contains the record ID and record type ID separated by a space.
Database names can contain spaces.
Record IDs are generally unique, but not all Blackberry devices mandate this, so it is possible, but rare, to have two records in the tar
file with the same filename. This is ok. The only problem you'd see is if you expanded such a tar file to a filesystem. The restore
process just reads in the filename sequentially and writes them to the device, so duplicate record IDs are not a problem.
AUTHOR
barrybackup is part of the Barry project. This manual page was written by Chris Frey.
SEE ALSO
http://www.netdirect.ca/software/packages/barry
July 28, 2009 BARRYBACKUP(1)