Sponsored Content
Operating Systems Linux Ubuntu tar not reading if output directed to /dev/null Post 302351540 by ilikecows on Wednesday 9th of September 2009 01:28:04 AM
Old 09-09-2009
Does your OS have the equivalent of truss on Solaris. When a program is run with truss system calls are output to STDERR. If you have something like that running tar with that and then redirecting the output to /dev/null and a regular file might show you why it ends so soon.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

/dev/null

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

URGENT - setup port and dump all output to /dev/null or a file

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

What is /dev/tty /dev/null and /dev/console

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

/dev/null what is the use of it?

when do you use the path /dev/null (3 Replies)
Discussion started by: webmunkey23
3 Replies

5. UNIX for Dummies Questions & Answers

cp output /dev/null results in not a directory

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

Error output of cat to /dev/null

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

/dev/null 2>&1 Versus /dev/null 2>1

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

Redirecting standard out to /dev/null goes to file "/dev/null" instead

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

redirect the audio output to /dev/null

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

2>/dev/null

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
RDUP-TR(1)							       rdup								RDUP-TR(1)

NAME
rdup-tr - transform rdup output SYNOPSIS
rdup-tr [OPTION]... DESCRIPTION
Transform rdup output into something else. Where something else can be a tar, cpio, pax archive or another rdup stream. The rdup archive must be given on rdup-tr's standard input. You can select multiple types of output (-O flag), but you must be aware that you may loose some information in formats other than rdup's own, see the table below. You may also supply rdup-tr with only a list of pathnames, this can be selected with the -L flag. The following table shows what happens with the output depending on the input. 0 OK D delete information is lost H hardlink information is lost | | output | tar,cpio,pax | rdup input | | ------------- | ------------- | ------ rdup | D | 0 filelist | DH | H | | OPTIONS
-L Select list input format. Normally rdup-tr accepts rdup output, with this option you can give it a list of path names. Note: with list input rdup-tr will `stat()` each file. -O Output format. This can be 'tar', 'cpio', 'pax' or 'rdup'. It defaults to 'rdup'. -X key Read the encryption key from the file key and encrypt all paths with Blowfish and this key and iv. After the encryption the binary data is converted into ASCII using an URL safe (Section 4 of RFC 3548) version of base64 encode. The encryption key must be on the first line and the key size must be 16 and 8 bytes for the iv, so 24 in total. -Y key Read the decryption key from the file key and decrypt all paths with Blowfish and this key. Before the encryption the paths are con- verted to binary by using an URL safe version of base64 decode. -c Force output to the tty. Normally rdup-tr wants to see it's output redirected. -v Be more verbose. -V Print rdup-tr's version. -h A short help. EXAMPLES
The following is possible rdup -Pgzip -Pmcrypt,-f,KEY,-c /dev/null /home | rdup-tr -O tar -X<(echo secret) | gzip > my-home-zipped-crypted-pathcrypted-tar.gz That is: all files under /home are gzipped and encrypted on a per file basis (first line). Further more, all pathnames are Blowfish encrypted (second line) with the key 'secret'. This is put in a tar file, which is then compressed, resulting in the final output (final line). Creating a compressed and encrypted tar archive out of a full rdup dump might be done as follows rdup -Pgzip -Pmcrypt,-f,KEY,-c /dev/null /home | rdup-tr -O tar > my-home-zipped-and-crypted.tar Or even pack and unpack it on the fly rdup -Pgzip -Pmcrypt,-fKEY,-c /dev/null /home | rdup-tr -Otar | ssh user@remotehost tar xvCf /tmp - Or encryption with openssl rdup -Popenssl,enc,-e,-des-cbc,-k,secret /dev/null /home Or, compressing with gzip, encrypting with openssl and then compressing the entire archive yet again rdup -Pgzip -Popenssl,enc,-e,-des-cbc,-k,secret /dev/null /home | gzip > my_compressed_encrypted_rdup_archive.gz Recreating the original rdup output, which can be fed to rdup-up. gunzip -c my_compressed_encrypted_rdup_archive.gz | rdup-tr -Popenssl,enc,-d,-des-cbc,-k,secret -Pgzip,-d > my_rdup_archive rdup-up < my_rdup_archive -t /tmp/restore Notice the reversal of the -P options. EXIT CODE
rdup-tr return a zero exit code on success, otherwise 1 is returned. AUTHOR
Written by Miek Gieben. REPORTING BUGS
Report bugs to <miek@miek.nl>. SEE ALSO
http:/www.miek.nl/projects/rdup/ is the main site of rdup. Also see rdup(1), rdup-up(1) and rdup-backups(7). COPYRIGHT
Copyright (C) 2005-2010 Miek Gieben. This is free software. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Licensed under the GPL version 3. See the file LICENSE in the source distribution of rdup. 1.1.11 27 Nov 2008 RDUP-TR(1)
All times are GMT -4. The time now is 03:35 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy