LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 02-21-2012, 09:45 AM   #1
Roken
Member
 
Registered: Oct 2011
Location: Warrington, UK
Distribution: Arch local, Debian on VPS, several RPIs.
Posts: 300
Blog Entries: 1

Rep: Reputation: 55
Question Restart screenlet


Does anyone know of a way to restart a screenlet using bash? I have a picframe screenlet that I'd like to show a slideshow with, but it doesn't update once launched.

I've tried killing the screenlet using the PID using the following, but it doesn't die.

Code:
CURPID=`ps -Af | grep PicframeScreenlet.py | sed 's/^[a-zA-Z]* *\([0-9]*\).*/\1/' | head --lines=1`
kill $CURPID
The plan being to start it again immediately. It would, obviously, be much nicer to simply restart it, but any option would be much appreciated.

Thanks,

Last edited by Roken; 02-21-2012 at 09:49 AM.
 
Old 02-21-2012, 10:35 AM   #2
liberalchrist
Member
 
Registered: Jun 2011
Location: Chester, SC
Distribution: Slackware Current
Posts: 142

Rep: Reputation: 33
I looked at the python man page. Try "python -m PicframeScreenlet.py". You might have to use the full path to the applet. Try it both ways.
 
Old 02-21-2012, 10:50 AM   #3
Roken
Member
 
Registered: Oct 2011
Location: Warrington, UK
Distribution: Arch local, Debian on VPS, several RPIs.
Posts: 300

Original Poster
Blog Entries: 1

Rep: Reputation: 55
Nope. tried with python and python2

Code:
/usr/bin/python2: Import by filename is not supported.
 
Old 02-21-2012, 10:56 AM   #4
liberalchrist
Member
 
Registered: Jun 2011
Location: Chester, SC
Distribution: Slackware Current
Posts: 142

Rep: Reputation: 33
A lot of information on this page that seems appropriate to your situation: http://docs.python.org/using/cmdline.html
 
Old 02-21-2012, 11:33 AM   #5
Roken
Member
 
Registered: Oct 2011
Location: Warrington, UK
Distribution: Arch local, Debian on VPS, several RPIs.
Posts: 300

Original Poster
Blog Entries: 1

Rep: Reputation: 55
Thanks for the replies guys. Python documentation was no help (I'd already looked at it). However, whilst kill doesn't kill it, pkill does. Marking as solved.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Trying to install a Gnome Countdown Screenlet warrior23 Fedora 1 04-15-2011 05:52 AM
watermark system info screenlet is not locking to desktop soumya_r Linux - Software 0 12-24-2010 11:10 PM
help installing a screenlet golgo Linux - Software 2 08-05-2009 10:34 PM
Screenlet dellthinker Linux - Newbie 2 06-11-2008 06:40 PM
An idea for a screenlet... vxc69 General 10 06-21-2007 02:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 05:36 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration