tail log on remote iPad


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting tail log on remote iPad
# 1  
Old 10-26-2012
tail log on remote iPad

I have a jailbroken ipad acting as a window sign. It is running an app I wrote that plays a video over and over. Sometimes it stops working, so I set up a log to the device that I can read. I would like to get an alert when the log shows that the player has stopped working. I have openSSH set up on the iPad, and I can successfully connect and see that the log file exists. However, "tail" does not exist on iPad, so I can't tail the log. I have to actually copy the file to my local machine before I can read it. SO...

Is it possible to use tail on my system to read a remote file? Something like:

Code:
tail -f "ssh root@ipad /path/to/log/logfile.log"

Thanks!
# 2  
Old 10-26-2012
No, but you can write a tail or poll the tail. tail -f just keeps trying, sleeping, trying. Keep a shadow copy with tee and tail past that many characters and then sleep in a loop.
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Solaris

How to tail an installation log?

Hi Guys, when installing an application, I believe there is a log file which is create to log the progress of the installation. What I will like to know is, how do you tail the start log file to see the installation as it is progressing. I will really appreciate your help. Thanks (1 Reply)
Discussion started by: cjashu
1 Replies

2. Shell Programming and Scripting

tail and log rotation

Need some suggestion with an old problem form a thread here: https://www.unix.com/shell-programming-scripting/153204-multiple-not-statement-awk.html Since my log is large, I did get help to make a line that splits the log into two partstail -f syslog | awk '!/snmpd|ntpd|reject/{print | "tee... (1 Reply)
Discussion started by: Jotne
1 Replies

3. Shell Programming and Scripting

Joining multiple files tail on tail

I have 250 files that have 16 columns each - all numbered as follows stat.1000, stat.1001, stat.1002, stat.1003....stat.1250. I would like to join all 250 of them together tail by tail as follows. For example stat.1000 a b c d e f stat.1001 g h i j k l So that my output... (2 Replies)
Discussion started by: kayak
2 Replies

4. Shell Programming and Scripting

how to run tail -f for 3 log files from a script

hi i need to run from a bash script tail -f /var/log/access_log >> access1 tail -f /var/log/prod/prod1 >> access1 tail -f /var/log/prod/prod2 >> access1 this script purpose is to start at server boot time and should always run. what is the best way to put it on a script Thanks Dan (1 Reply)
Discussion started by: dan12341234
1 Replies

5. Shell Programming and Scripting

How to tail log in one script?

I have three prodcution box Prod1 Prod2 Prod3 I want to write a script which tail the log for each production box and put it into some file which I have want to tail For example Prod1 ----- TIMER IXN=MEMPUT, USR=GGu1, elapsed = 0.176 seconds. 11:41:44 AUDIT MEMPUT: member... (4 Replies)
Discussion started by: mr_harish80
4 Replies

6. Shell Programming and Scripting

tail copy of a file to remote location

Hello, I have a solaris box and a windows server. The windows server runs cygwin for ssh service. I have an audit log in solaris box. When ever new records are added to the log file, this delta has to be trasported to a remote file in windows. I can do a ssh once in a while, but want the... (7 Replies)
Discussion started by: unori
7 Replies

7. Shell Programming and Scripting

how to tail a log file..

Hi All.. I have a log file in which all the backup information is stored. Now i have written a script which get the last line in the backup log file.. ssh -l ora${sid} ${primaryhost} "tail -1 /oracle/$ORACLE_SID/sapbackup/back$ORACLE_SID.log" However i would like to tail the line last... (4 Replies)
Discussion started by: suri.tyson
4 Replies

8. Shell Programming and Scripting

tail -f a log file redirected into a new window?

Is this possible? I am attempting to display a new xterm window and tail -f the log file within that new window. I am currently working on a solaris 8 machine if that has any different meaning than the other platforms. As you can see, I am a newbie to this forum and to UNIX. Any help would be... (2 Replies)
Discussion started by: douknownam
2 Replies
Login or Register to Ask a Question