![]() |
SOLVED: Sign in/out Skype (set availability Online/Offline) with cron
As per post title really, does anyone know the shell commands to go online/offline with Skype etc so I can cron it?
Thanks. EDIT: I have managed to solve this with a bit of digging on the forums and adapting of scripts. The first script I created called "skype-online" is here: Code:
#!/usr/bin/env python Code:
#!/usr/bin/env python |
Re: SOLVED: Sign in/out Skype (set availability Online/Offline) with cron
Solved - see above
|
Re: SOLVED: Sign in/out Skype (set availability Online/Offline) with cron
Awesome!! Thanks so much. I did have to fix a few minor indentation errors. No big deal.
Fred |
Re: SOLVED: Sign in/out Skype (set availability Online/Offline) with cron
Thanks a lot, great posting!
But beware, this will bring offline/online all IM accounts, not only Skype. |
Re: SOLVED: Sign in/out Skype (set availability Online/Offline) with cron
Thread moved to Applications.
|
Re: SOLVED: Sign in/out Skype (set availability Online/Offline) with cron
When i try to run this script, using /usr/bin/python2.5 /home/user/MyDocs/scripts/skypeonline.py i get this error:
Code:
Traceback (most recent call last): |
Re: SOLVED: Sign in/out Skype (set availability Online/Offline) with cron
Hello
I have problem with trying to run this script... I think I don't know what I should to write... I saved this script in my folder.. I did permission to this file (chmod +x) I wrote in terminal: python /opt/Scripts/skape-online and i got this message: Code:
File "/opt/Scripts/Skypeon.py", line 16 Thanks |
Re: SOLVED: Sign in/out Skype (set availability Online/Offline) with cron
Quote:
online Code:
#!/usr/bin/env python Code:
#!/usr/bin/env python But I'd still like to know how to set the presence, or status of the IM accounts. Any ideas? |
Re: SOLVED: Sign in/out Skype (set availability Online/Offline) with cron
If you install "libmissioncontrol-utils" you can set resence with:
Code:
mc-tool list | grep -v "ring/tel" | awk {'print "mc-tool request "$1" busy"'} | sh If you don't want to set all accounts at once you can replace -v "ring/tel" (exclude -v) with "skype" or "ovi" or "gmail" etc. depending on the account settings. |
Re: SOLVED: Sign in/out Skype (set availability Online/Offline) with cron
hillbicks, thanks this script is work, but "offline" still try to connect to internet... and "online" connect all my IM accounts..
I too want to know how to set MY presence of the IM accounts... Quote:
But before I run this code, I need set my presence to "ofline", if I set "Online" all my accounts connecting automaticaly, when I connect to internet... The code not switching to one account, that I wrote in the code.. It's still a good, I only need to remember to switch "offline" before I run "desktop activity"... |
All times are GMT. The time now is 19:29. |
vBulletin® Version 3.8.8