General :: Command Line - Unix - Program That Can Handle All Popular Compression/archiving Formats - E.g.tar, Gzip, Bzip2, Zip?

Jun 22, 2011

I sometimes get confused by the varying command line options I need to run common Unix archiving and compression software (e.g. gzip, bzip2, zip, tar).

Is there a program out there that can just Do What I Mean for common cases? For example:

View 2 Replies


ADVERTISEMENT

General :: Control Gzip Compression Rates While Archiving Files With Tar?

Jun 4, 2011

I have a script which periodically backs up a directory using the command "tar -czvf [name] [directory]" but my problem is that the script has recently been putting a lot of stress on the server (Minecraft SMP) and tends to lag players as it backs up, which recently has been taking nearly 5 minutes.So I need to know if there's a way to control the GZip compression rate at the same time that it archives and backs up the files?I understand that I can first tar the files and then GZip them separately with a different compression rate afterwards, but this would not work because it names the files with the current server time, which sometimes changes in between commands.

View 1 Replies View Related

General :: Backup Script Multiple Gzips Into One Bzip2 Or Gzip?

Feb 18, 2010

I have a backup script basically is this

Code:

BACKUP_DIRS="/etc /boot /root /home"
BACKUP_FOLDER="/tmp/system_backup/
for DIR in ${BACKUP_DIRS}
do

[code]....

All the folders get dumped into seperate gzip files. Now I want all the gzip files in the backup folder into one final gzip or bzip2 file. My goal for this is to get one file instead of multiple so I can scp or ftp the one file to another file share. Which would be easier to send one file than a bunch of files.

View 2 Replies View Related

General :: How To Know Gzip Compression Level

Apr 12, 2011

Given a gzip compressed file, how do I know what compression level (1-9) was used for it?

View 2 Replies View Related

OpenSUSE :: New MB And Processor And Gzip/bzip2 Does Not Work Anymore

Jun 22, 2010

I am using suse for a long time but I did not yet experience this strange error:

I installed 11.2 and now 11.3RC1 on a new HW: ASUS M4N72-E with AMD Phenom2 X4 965, 8GB Memory, standard settings.

I experienced unusual errors when copying large files to the new system with scp/ssh (connection broken).

Even stranger I could not read .tgz files created on the older machine, same OS 11.2, but MB ASUS M2N32-SLI with AMD Phenom X4 9850

Testing further reveals that if I create a .gz file from the same source it produces every time a different output:

-rw-r--r-- 1 root root 3875041280 Jun 21 01:51 wwtest.tar
-rw-r--r-- 1 root root 1326141906 Jun 21 01:55 wwtest1.tar.gz
-rw-r--r-- 1 root root 1326137319 Jun 21 03:26 wwtest2.tar.gz
-rw-r--r-- 1 root root 1326146273 Jun 22 07:32 wwtest3.tar.gz

[Code].....

I never saw something like it, I guess it must be something with the underlying library not working on the new processor. I tried with slower memory speed, newest BIOS etc ...always the same errors. Other wise the system works absolutely stable.

When I compare the generated files with one created on the older system it looks like there are single bits missing in a random number of bites.

View 2 Replies View Related

Hardware :: MP3 Player To Play All Popular File Formats

Jun 18, 2010

I am looking to buy a mp3 player that would be 100% compatible with linux. I recently returned my ipod touch because without going into details, it was a nightmare to get running in linux, it actually wouldn't run. Now that I am free again, I would like recommendations for a mp3 player with roughly the following features:

-100% compatible with linux
-compatible with windows (in case I want to transfer stuff from my gf's laptop)
-can play pretty much all the most popular file formats from linux
-application to convert files so the player can read them (I am thinking about itunes here);
-has FM radio;
-has a decent GUI (no monochrome text only interface like the ipod shuffle (?);

I would think 4GB is enough for me. I am not the kind of person to pack my player with 600GB of stuff and empty it once a year. I will probably add/remove stuff everyday. I also wouldn't mind if it can play podcasts. I also don't mind buying from less known companies. I just need to make sure if it craps out, I can return it or get it repaired within canada.

View 14 Replies View Related

General :: Command Line - SSH To Server Without Including Username In URL On Unix/Mac

Sep 8, 2011

I am trying to ssh into my server from the command-line without including the username in the url. I do not want it to send any username, as it currently takes the active account and sends that as user.ex:

ssh server.com -> (doesn't send default username)

instead of [URL] I would want to input username directly into the server, just like it is done using putty on windows. he wants to be prompted for a username, rather than having to provide one when connecting - but I don't really see the utility in such a thing. - birryree Sep 8 at 17:41

View 3 Replies View Related

General :: Using DD Command With Bzip2?

Jul 3, 2010

I am looking to use DD to compress an entire disk (sda) to an image file on sdb. A friend told me to mount sdb / partition 1, then as root, type the following command:

Code:

dd if=/dev/sda | bzip2 -9 >/media/sdb1/disk_image.img.bz2

This did not work. I just get an error message:

Code:

Invalid command line: Not enough files given. Aborting...

I was also told to restore (assuming sda has the image & sdb is the destination), I could do the following:

Code:

bzip2 -cd /media/sda1/disk_image.img.bz2 | dd of=/dev/sdb

Of course, since the first part didnt work, I couldnt test the second. How to use DD to byte for byte image the entire drive & compress it (its mostly empty space).

View 8 Replies View Related

General :: Windows - Program Which Uses LZW Compression

Oct 4, 2010

how to do Lempel-Ziv-Welch compression using pen and paper for my algorithms and data structures class. Unfortunately we have only a couple of examples in our book of how it is done. I'd like to practice compressing and decompressing text using it, but I need to find a way to check if I'm right doing it right or wrong.

So I'm looking for some preferably free/open source program which can compress and decompress LZW for Windows or GNU/Linux. Programs without binary distributions are fine too.

View 2 Replies View Related

Networking :: Unix Command Line Tool For Monitoring Outbound Traffic?

May 19, 2010

I've read up some of the posts on this forum, but can't seem to find an answer. I have a web service within an Apache Tomcat instance installed on a Redhat linux server. I only have shell access to the server, and need to monitor outbound network traffic from my web service. Is there a unix command that will allow me to monitor all outbound traffic? I'm thinking fiddler, but a unix version? I've heard of things like ntop and iptraf, but I don't think those will help me in this instance.

View 2 Replies View Related

General :: See All Installed Program In Ubuntu From Command Line?

Jun 16, 2010

How can I see all my installed program in Ubuntu from command line?

View 2 Replies View Related

General :: Ubuntu - Command-line Program That Switches Consoles?

Jun 18, 2011

For whatever reason, the "Ctrl-Alt-Fn" sequence has no effect on one of my Ubuntu machines; the sequence is interpreted as ordinary input. I need to get the system to a console because I'm trying to do a dist-upgrade and that's going to bounce gdm etc.

Is there some command-line tool that can be used to switch consoles? I have some vague distant memory of that being possible.

(I'm running Ubunty Jaunty at the moment. Yes I know it's old; I'm trying to march forward.)

View 2 Replies View Related

General :: Difference In Size Of The Tarred Files After Archiving Using Tar Command?

May 17, 2011

i am using red hat linux 2.4 . I have 3 folders dir1 dir2 dir3 I have tarred them like this.

1.tar cvfz tarball_1.tgz dir1 dir2 dir3

2.tar cvfz tarball_2.tgz dir1 dir2 dir3 2>& /dev/null (So that it does not display any error message or operation details to the user)

[usr@machine]$ ls -lrt
-rw-r--r-- 1 usr grp 199843988 May 17 13:39 tarball_1.tgz
-rw-r--r-- 1 usr grp 199837488 May 17 13:53 tarball_2.tgz

But can any one explain the size difference as seen in list output...

View 4 Replies View Related

General :: High Level Command Line Program For Burning CDs And DVDs?

Mar 12, 2010

I'm sick of screwing around trying to script a clean solution to burn multiple files and folders to CDs and DVDs with wodim, growisofs and genisoimage.I'm looking for a high level command line program that uses sensible defaults and takes arguments something like this:[program-name] [cd|dvd] /path/to/dir1/ /path/to/dir2/ /path/to/file ...It should then do all the low level copying and ISO generation transparently and just burn the damn disk!Does anyone have any suggestions? I've looked at several programs but it seems there are too many choices to trawl through and not enough information about them online.

View 4 Replies View Related

General :: How To Program The Command Line To Run A Piece Of Code Multiple Time

Dec 4, 2010

So, I usually write/find a test case generator for any code that I write. This type of code generally leads to some file output. To be thorough, I try and generate many different files to test my code on.

Say the command is like this:

Is there a way to automate this for many different values of the parameters and generate many different files?

I tried:

I wasn't able to use the $i in the filename, and without it the command gave me no errors, but did nothing else either. I know the Unix command line is very powerful, and I have a feeling that this should be possible, but I just don't know how to do it.

View 3 Replies View Related

General :: CentOS Command-line Program To Randomly Change MAC Address?

Nov 7, 2009

OS: CentOS 5.3 Enterprise Server
Red Hat Nash Version 5.1.19.6

I need to find a command-line program to randomly change my MAC address. I know on Ubuntu there is a program called 'macchanger'. And on Windows another one called 'macshift'. I just can't find one for CentOS 5.3 Enterprise Edition.

View 3 Replies View Related

General :: Gzip Command To Append Some Files

Feb 21, 2011

I have a existing zipped file , I want to use gzip command to append some files to it , I tried man gzip but can't find the key word "append" , can advise how can I do it ?

View 1 Replies View Related

Ubuntu :: Box To Run A Command Line Program?

Sep 19, 2010

I have just installed pdfocr. Unfortunately it does not have a gui and so in time I will forget how to use it or not remember I have it.

Is there a simple generic program that will browse to where the file is and then run the command line? I suspect python will do it. Could someone point me to a suitable tutorial for this purpose.code...

View 2 Replies View Related

Ubuntu :: What Command Line Program Should Be Used

Jul 6, 2011

I am going to do a web based search for several thousand webpages which may or may not exist. I just want a list of the addresses which work. I dont want to load into firefox, and I'd preffer not to ping the url. I just want to test the URLs for validity and kick back a list of good URLs.
Any Ideas on a simple program to do this, which I can use in a bash script?

View 2 Replies View Related

General :: ImageMagick's "import" Command Line Program Failing To Take A Screenshot From CRON Script

Feb 16, 2011

I wrote a simple command line script which is suppose to take my screenshot every 5 minutes.(using ImageMagick's "import" program)

Here is the script (shottr.sh):

This is working fine if I execute by hand i.e:

The script itself is being executed (I hear a voice saying: "Screenshot") but the actual screenshot is not taken.

Be assured that it is NOT permission issue (I placed a simple "touch" invocation and file was created)

May be if it's run from cron...it doesn't have a "window" so it can't take a screenshot from nowhere? If that is the case, then how can I workaround it?

View 1 Replies View Related

Debian :: Install A Program Using The Command Line?

Jan 29, 2011

I tried to install Vlc using the terminal (terminal as root). I've used the command aptitude install vlc. Instead of installing only vlc, my gnome desktop environment was removed, gdm was removed, many more programs was removed! What's the command for installing just a single program using the command line? I was used under Ubuntu to use the command sudo apt-get install [***]

View 14 Replies View Related

Fedora :: Using Built In Command Line FTP Program?

May 13, 2010

Any relatively easy user guide for the built in command line ftp program?

View 10 Replies View Related

Ubuntu :: How To Run A Python Program From The Command Line

Jun 14, 2011

i have ubuntu 10.04 and python 2.6 installed how do i run, stop or restart a .py file from the command line.

btw im using Putty from a windows computer

View 1 Replies View Related

SUSE :: Unable To Get A Program To Run From The Command Line?

Nov 9, 2010

I have reinstalled Suse 10.1 as dual-boot with Windows XP. I am now unable to get a program to run from the Linux command line. I am familiar with the program and have had it running previously when the machine was Linux-only. Everything else, e.g.Firefox and Office, work fine in Suse.

[Code]...

The problem occurs with all commands - not just this one. isis3Startup.sh is in green on the screen so I assume I should be able to run it - I have never had any problem when it was installed previously.

View 2 Replies View Related

Software :: Command Line Program For IP Calculation?

Apr 8, 2011

ipcalc isn't the one I am thinking of. I remember another one that was a bit better, with more options -- easier to use.I remember that if you gave it a CIDR network /23 and an IP, it would list all of the address ranges, network, broadcast for that network..

View 2 Replies View Related

Programming :: Program That Activates A Command-line?

Feb 7, 2010

I am wanting to write a program that runs a program or command-line. Is there are way of making a program that activates a command-line (for example executing 'ps -a -f' or '/home/shared/fah').

In addition to that, I want the program to do a 'ps -a -f' and put the results in a buff, how could I do this.

View 5 Replies View Related

General :: When Starting Xampp - Get -Warning Bogus Unix Line

May 3, 2010

Not sure why, but the last couple of tiems I have started xampp from root terminal, I have got this message after each program start.

Warning a bogus unix line

Since that last time it was not there, other that add sweb spahes etc., I have only tried to unpack the Control Panel which was unsuccesfull anyway saying I needed some other programs.

View 1 Replies View Related

Debian :: Any Program To Send Mail From Command Line?

Sep 9, 2010

Is there an easy to use program that I can use to send mail from the command line? I want to be able to create a batch script to send mail from different text files. What I'm looking for is something like:
mailapp mailserveraddress destinationmailaddress mymailaddress filetosend

View 11 Replies View Related

Ubuntu :: Difference: Run Program From Rc2.d Or From Root Command Line?

Mar 26, 2010

Example: In rc2.d I have S99test. In it: Code: #!/bin/sh mplayer -playlist "/music/Thom Yorke - The Eraser" Reboot; hear the loveliness; press pause (lirc setup)...still loveliness.

Login as root; "pkill mplay";hear nothing; "/etc/rc2.d/S99test"; more loveliness; press pause...silence! I know that i the former case, mplayer is assigned (for lack of a proper term) to a session, e.g. tty1. Not so in the latter. But why should a program like mplayer not receive (or ignore?) input from lircd, simply because it doesn't have a session? And how can I get mplayer (or any program run from boot scripts) to work with other programs (like lircd)?

View 1 Replies View Related

Programming :: Using Command-line Options With A Program That's Called Using Env

Oct 11, 2010

I thought about this a while ago when reading through a Python tutorial and I googled some and couldn't find an answer. Now I want to know it for Ruby, also, and it's more important now because I want to invoke Ruby with -w.

How can you use:

Code:

with a -w option to ruby, like:

Code:

This doesn't work and I can't find an explanation of how to do it.

Code:

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved