Posts Tagged ‘tar’

Parse Download Director dlmgr.pro

August 20th, 2008

  parse_ddpro.tgz (1.2 KiB, 331 hits)

Rename ambigous files downloaded from passport advantage

If you use the IBM Passport Advantage or PartnerWorld portal to download software, you no doubt want to have the filenames renamed to something more meaningful than the software part number. This script will rename files based on the parsed info in the dlmgr.pro file. Example

jdsmedia@deantp1 /cygdrive/c/DownloadDirector $ ls -1
C1FT9EN.zip
C1FU3EN.tar
C1FU4EN.tar
C473DIE.exe
dlmgr.pro
itmpatchagents.zip
itmsup.zip
jdsmedia@deantp1 /cygdrive/c/DownloadDirector $ /usr/local/bin/parse_ddpro.pl
PWD is /cygdrive/c/DownloadDirector
mv C1FU4EN.tar ITM_Version_6_1_Vol_6_Fixpack_7_Linux_Intel_C1FU4EN.tar
mv C1FT9EN.zip ITM_Version_6_1_Vol_1_Fixpack_7_Windows_Plat_C1FT9EN.zip
mv C1FU3EN.tar ITM_Version_6_1_Vol_7_Fixpack_7_Linux_Intel_P_C1FU3EN.tar
  • Share/Bookmark

Tags: , , , , , , , , , , ,
Posted in Downloads, Non-Tivoli | Comments (0)

Extract TAR files over SSH

August 13th, 2008

Instead of copying a large tar file over ssh then extracting, take care of the whole process with one command:

PUSH METHOD:

cat  tarfile | ssh –C user@remotehost “(cd targetdirectory && tar –xf -)”

This will stream the tarfile over a compressed ssl tunnel and the other side will only extract if the target directory exists. The “cd targetdirectory” piece I used as a good prevention to blowing files all over an undesired/unexpected location.

PULL METHOD:

ssh -C user@remotehost”cd sourcedirectory; tar -cvf – dir_or_file> outputfile

This is the opposite method, obviously.  Please note, the output of the SSH needs to be redirected to an output file.

  • Share/Bookmark

Tags: , , , , , , , , , , , , ,
Posted in Non-Tivoli | Comments (1)

  • LinkedIn

    If you want to see my LinkedIn profile, click on this button:

    Jim Sander
  • Save MySQL

JDS Media is Digg proof thanks to caching by WP Super Cache