About: RevRagnarok's Blog
Browse by time:
- June 2010 (1)
- April 2010 (1)
- February 2010 (5)
- August 2009 (2)
- February 2009 (1)
- December 2008 (2)
- November 2008 (1)
- October 2008 (1)
- September 2008 (1)
- August 2008 (5)
- July 2008 (2)
- June 2008 (2)
- April 2008 (1)
- March 2008 (3)
- February 2008 (3)
- January 2008 (7)
- November 2007 (1)
- October 2007 (1)
- September 2007 (1)
- August 2007 (1)
- March 2007 (1)
- February 2007 (2)
- December 2006 (4)
- November 2006 (1)
- October 2006 (1)
- September 2006 (1)
- June 2006 (1)
- April 2006 (2)
- March 2006 (1)
- January 2006 (1)
- December 2005 (2)
- October 2005 (5)
- September 2005 (3)
- August 2005 (2)
- July 2005 (5)
- June 2005 (1)
- May 2005 (4)
- April 2005 (1)
- September 2004 (1)
- August 2004 (5)
- July 2004 (4)
- June 2004 (2)
- May 2004 (5)
- April 2004 (6)
- March 2004 (18)
- November 2003 (3)
- October 2003 (1)
- August 2003 (1)
- July 2003 (3)
- June 2003 (3)
- April 2003 (2)
- February 2003 (2)
- January 2003 (1)
- December 2002 (2)
- October 2002 (2)
- June 2002 (3)
- May 2002 (1)
- January 2002 (1)
Browse by author:
- rss RevRagnarok (146)
Browse by category:
- rss apache (1)
- rss arduino (1)
- rss cygwin (17)
- rss ghost (5)
- rss import (96)
- rss links (55)
- rss linux (56)
- rss matlab (1)
- rss misc (24)
- rss mozilla (7)
- rss mysql (3)
- rss perl (12)
- rss rant (18)
- rss recipe (2)
- rss ruby (1)
- rss svn (7)
- rss tech (18)
- rss trac (7)
- rss vista (3)
- rss vmware (6)
- rss win7 (1)
- rss win9x (12)
- rss winxp (41)
Peeking on a process
We have a problem at work with an ssh failing, but I don't have access to the source of the program running ssh. So I replaced ssh with this script, renaming the old ssh to ssh_orig. The extra flags on ssh were just me seeing if I can get the thing to work, you can ignore them:
#!/bin/bash echo $* >> /tmp/ssh-$$-in ssh_orig -C -2 -x $* | tee /tmp/ssh-$$-out
This creates a bunch of files in /tmp/ with the input command line string given to the script in the -in files and the output in the -out files.
Note, this will probably cause a security audit problem since you messed with ssh. ;)
- Posted: 2004-08-17 05:00
- Author: RevRagnarok
- Categories: import linux

rss
Comments
No comments.