I am running a daemon program that sends texts via a connected mobile phone. I run this daemon via CLI, and it loops a few commands (checking to see if there are any new texts).
It runs perfectly, the problem is, when I leave this to run on my Ubuntu Desktop, and come back to it hours later it has stopped running.
I need to find out why it exited, and when, so I can write a cron task to start it up periodically. - how do i do this best?
Thanks.
Set return codes at exit points, and put this at the top of your script:
Hi I am trying to find out the best way to find out how long a command takes to run in miliseconds ..
Is there such a way of doing this in Unix ?
Thanks (3 Replies)
hi,
how do i find boot reason in solaris?
i know that signal 15 reboot is a manual reboot...
#cat /var/adm/messages | grep -i signal
what does this mean from #last -10
"reboot system boot Sun Oct 19 09:24"
is it a system boot (auto reboot by the server) or human... (5 Replies)
What's the best way to find a string in a very long file without newlines in Unix? The standard utility I'm aware of for finding a string in a single file is grep, but for a long file without newlines, I think the output is just going to be the input. I suppose I could use sed to replace the... (5 Replies)
Does screen command run forever?
Suppose I have following command inserted at my putty shell followed by screen
# screen
# export JAVA_HOME=/usr/java/jdk1.6.0_21
# export ANT_HOME=/usr/ant
# export PATH=$PATH:$JAVA_HOME/bin:$ANT_HOME/bin
# export... (0 Replies)
The end result that I'd like is to terminate any process on my ps -u username list that extends beyond 20 minutes. I know for a fact that this process will be named l.exe, but I don't know the number in between and I won't know the PID. Is there a way to use grep or pidof to do this task every 20... (2 Replies)
Hello All,
I need to run a set of scripts, say 50 of them, parallely. I'm running these 50 scripts, from inside a script with the help of 'nohup' command.
1.The fifty scripts are stored in a separate file.
2.In a master script, i'm reading every line of the file through loop and executing... (4 Replies)
Good evening.
because the folder has thousand of files it takes too long and have some trouble to get the largest files and then compress files or delete it, for instance
find . -size +10000000c -exec ls -ld {} \; |sort -k5n | grep -v .gz
The above commad took an hour and i have to cancel... (10 Replies)
Discussion started by: alexcol
10 Replies
LEARN ABOUT DEBIAN
linphonecsh
linphonecsh(1) linphone, internet phone linphonecsh(1)NAME
linphonecsh - Sends a command to a linphonec running in daemon mode, and exits.
SYNTAX
linphonecsh init <optional linphonec args>
linphonecsh exit
linphonecsh generic <linphonec command line surrounded by quotes>
linphonecsh register --username <username> --host <proxy> --password <password>
linphonecsh unregister
linphonecsh dial <sip address or number>
linphonecsh status <domain = one of 'register', 'hook', 'autoanswer'>
linphonecsh --help
DESCRIPTION
Linphonecsh is a small utility to send basic commands to a linphonec (console mode linphone) process. Unlike linphonec, linphonecsh does
not wait commands from standard input: it takes the command from its arguments and sends it using unix pipe to a linphonec process started
in daemon mode. The motivation for this tool is for example to simply execute voip calls from scripts, web-servers, or javascript web
pages.
The very first thing to do before doing actions is to ask linphonecsh to spawn a linphonec daemon using
linphonecsh init
The resulting linphonec daemon does not read or write any configuration file.
When the linphonec daemon is no more needed, the following commands makes it exit properly:
linphonecsh exit
FILES
By default a linphonec started as a daemon by 'linphonecsh init' does not use a config file.
ENVIRONMENT VARIABLES EXAMPLES AUTHORS
Simon Morlat <simon.morlat at linphone.org>
SEE ALSO linphonec(1)sipomatic(1)linphone(1)Simon MORLAT 3.0.0 linphonecsh(1)