Hash marks when running tar or zip from Cshell


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Hash marks when running tar or zip from Cshell
# 1  
Old 04-17-2009
Hash marks when running tar or zip from Cshell

Does anyone know how to get hash marks (or some other visual indicator) to print to the screen during tar or zip commands run from within a Cshell on Sun or Linux? Currently the user receives no indication that a command is running and cannot be sure that a problem has not occurred. I can find nothing in the man pages about how to do this.

Also is there a way from within a Cshell script to determine if the user is running on a Linux or Sun machine?

Thanks,
Paul H.
Denver
# 2  
Old 04-17-2009
For zip, try -v to get a progress indicator. For tar, also try -v, it will print filenames as they are archived.
# 3  
Old 04-20-2009
I am using -v, and the files are echoed to the screen - the problem is that they are extremely large files and the screen can be motionless for hours while the file is zipped/tarred/ftpd. Are there any other solutions?

Thanks,
Paul H.
# 4  
Old 04-20-2009
tar is not an interactive program, it has nothing like that. You might install bar or pv and pipe tar's output through them.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Tar.gz/zip folders in a directory with _EBASE string

Hi Folks - Happy Friday and I hope you all are well! What's the easiest way to tar.gz / zip all direct children directories in a folder that have the string _EBASE (suffix)? Thank you! (6 Replies)
Discussion started by: SIMMS7400
6 Replies

2. UNIX for Dummies Questions & Answers

Extract .zip file without using unzip,tar

Hi, Need to extract a file containing multiple .txt files without using tar/unzip as they are not available (1 Reply)
Discussion started by: santoshdrkr
1 Replies

3. UNIX for Dummies Questions & Answers

TAR and ZIP files

Hi, I need a help with zip and tar. I have no done any scripts before with zip command. What I need to achieve is list files in a directory with a specific name (ID_DATE format- given examples) and then zip (or gunzip which I need to use, I am not sure) with timestamp on the file name and then... (15 Replies)
Discussion started by: Vijay81
15 Replies

4. UNIX for Advanced & Expert Users

How to zip/tar millions of files?

Hi guys, I have an issue processing a large amount of files. I have around 5 million files (some of them are actually directories) in a server. I am unable to find out the exact number of files since it's taking "forever" to finish (See this thread for more on the issue). Anyway, now I... (6 Replies)
Discussion started by: verdepollo
6 Replies

5. Shell Programming and Scripting

Process indicator with hash marks

Hi Experts, I have written a php script that calls several smaller bash shell scripts throughout it's loop process. Users run this script to achieve a task that this script has automated. However this script depending upon the amount of input variables could take some time to run. It may be a... (5 Replies)
Discussion started by: jaysunn
5 Replies

6. UNIX Desktop Questions & Answers

Using Tar Zip

Hi, I want to backup my SQL database using tar zip but I'm paranoid that I will archive it. What I mean is I want the files to stay where they are but make a zipped copy of the files as well, I don't want to delete the originals. Is the command? tar -cvzf databasename.tar.gz... (1 Reply)
Discussion started by: chickenhouse
1 Replies

7. UNIX for Dummies Questions & Answers

diff between TAR+zip+FTP and TAR+FTP

Huloo, whats diff between TAR+zip+FTP and TAR+FTP,can't we simpply FTP a file without Zipping it? TAR is simply for Archiving ,then why do we need to Zip it? :( (1 Reply)
Discussion started by: swarup2008
1 Replies

8. Shell Programming and Scripting

Conversion of .zip to .tar.Z format

Can we have a shell script for this sort of conversion? There are some web-based tools which display the contents of tar.Z format. I am trying to convert zip files to that Thanks in advance (2 Replies)
Discussion started by: eagercyber
2 Replies

9. UNIX for Dummies Questions & Answers

tar.gz zip file.....

Hi, i have tar.gz file in inbound director. i want display the contents on the tar.gz file in a temp file. please help me on this. (4 Replies)
Discussion started by: koti_rama
4 Replies

10. UNIX for Dummies Questions & Answers

Disk-Spanning Zip/Tar-File

I don't know how to create a disk-spanning archive using UNIX. Could someone please help me out? (1 Reply)
Discussion started by: mrosengarth
1 Replies
Login or Register to Ask a Question