Extract the files of an RPM archive to the working directory

rpm2cpio WHATEVER.rpm | cpio -i --make-directories

scp problems in csh ...

scp is executing .cshrc. In case .cshrc contains any screen output (also when psetup is called which generate screen output) the scp fails without any message. To avoid this you may use in the .cshrc file :

if ($?term) then 
  psetup
  echo "Hallo mein lieber Ekki"
endif

...the same is true for sftp

Before sftp is executed a remote ssh login is done. If this login produces shell output, the sftp connection and authentication is polluted by this output, which leads to error messages like

"Received message too long" or "Bad packet length"

To check if your shell login produces output, just do a ssh to the host where the sftp fails. Any text that is printed for your information or entertainment kills your sftp session and has to be avoided.

A more detailed explanation can be found here: http://www.snailbook.com/faq/sftp-corruption.auto.html

The workaround to this problem is to stop all shell output in the case when the shell is not directly called by a user. This can be done by the mentioned login script supplement on THE REMOTE HOST (the host where you want to connect to).

So add to the .cshrc, .tcshrc etc:

if ($?term) then 
  #put here all the lines that produce shell output
  #if sftp still does not work, put here ALL the lines of
  #the login script
  echo "Thank you, Michael!" 
endif

Making a movie using a sequence of JPG files

jpeg2yuv -f 25 -j pic_%d.jpg -I p | mpeg2enc -o m.mpg -G 1 -g 1 -f 0 -b 4000 -q 1 -V 2000

jpeg2yuv

-f 25
25 pictures make one second
-j pic_%d.jpg
pattern to select JPG input files

Herschel: PACS/Hints (last edited 2009-07-15 14:32:36 by localhost)