Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > More E-Book Readers > iRex > iRex Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 12-21-2008, 07:16 AM   #1
ericshliao
Guru
ericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enough
 
Posts: 973
Karma: 687
Join Date: Nov 2007
Device: Dell X51v; iLiad v2
How to send output to SSH terminal?

I want to trace my code running on iLiad. I plan to start a ssh terminal connecting PC and iLiad, and execute the app from contentlister, and make stdout of the app sent to ssh terminal, so that I can monitor every step of the app with my PC. Is it possible?

Last edited by ericshliao; 12-21-2008 at 07:19 AM.
ericshliao is offline   Reply With Quote
Old 12-21-2008, 08:33 AM   #2
-Thomas-
Addict
-Thomas- once ate a cherry pie in a record 7 seconds.-Thomas- once ate a cherry pie in a record 7 seconds.-Thomas- once ate a cherry pie in a record 7 seconds.-Thomas- once ate a cherry pie in a record 7 seconds.-Thomas- once ate a cherry pie in a record 7 seconds.-Thomas- once ate a cherry pie in a record 7 seconds.-Thomas- once ate a cherry pie in a record 7 seconds.-Thomas- once ate a cherry pie in a record 7 seconds.-Thomas- once ate a cherry pie in a record 7 seconds.-Thomas- once ate a cherry pie in a record 7 seconds.-Thomas- once ate a cherry pie in a record 7 seconds.
 
-Thomas-'s Avatar
 
Posts: 325
Karma: 1725
Join Date: Dec 2007
Location: Münster, Germany
Device: iRex iLiad v2
Hmm, haven't tried something like this yet, but maybe you can create a pipe and send your program output in there?
  • Connect to your iLiad over SSH (dropbear)
  • mkfifo /tmp/fifo
  • Send the output of your program to the pipe (e.g. in your run.sh script)
  • do a "cat /tmp/fifo" on your ssh connection
-Thomas- is offline   Reply With Quote
Old 12-21-2008, 08:45 AM   #3
ericshliao
Guru
ericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enough
 
Posts: 973
Karma: 687
Join Date: Nov 2007
Device: Dell X51v; iLiad v2
Ah! That makes sense. Thanx. I will try it.
ericshliao is offline   Reply With Quote
Old 12-27-2008, 10:06 AM   #4
hansel
JSR FFD2
hansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheese
 
hansel's Avatar
 
Posts: 305
Karma: 1045
Join Date: Aug 2008
Location: Rotterdam, Netherlands, Europe, Sol 3
Device: iliad
Quote:
Originally Posted by -Thomas- View Post
do a "cat /tmp/fifo" on your ssh connection
tail -F /tmp/fifo will show the output while it comes, and wait for more...
hansel is offline   Reply With Quote
Old 12-27-2008, 11:13 AM   #5
ericshliao
Guru
ericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enough
 
Posts: 973
Karma: 687
Join Date: Nov 2007
Device: Dell X51v; iLiad v2
Quote:
Originally Posted by hansel View Post
tail -F /tmp/fifo will show the output while it comes, and wait for more...
Thanx. I never knew it until now.
ericshliao is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Running Calibre on Terminal Server JeffAlan66 Calibre 2 08-12-2010 02:00 PM
The Gods of the Terminal, $0.99 Hitech_luddite Self-Promotions by Authors and Publishers 0 07-12-2010 12:04 PM
terminal workaround scotsman iRex 3 05-25-2009 02:48 PM
iLiad SSH client for terminal access IvarC iRex Developer's Corner 2 02-06-2009 01:21 PM


All times are GMT -4. The time now is 09:52 PM.


MobileRead.com is a privately owned, operated and funded community.