Active Topics

 



Notices


Reply
Thread Tools
Addison's Avatar
Posts: 3,811 | Thanked: 1,151 times | Joined on Oct 2007 @ East Lansing, MI
#481
It still won't die....


[1|user@Nokia-N800-43-7|~]killall mplayer & killall kill y & killall kill youtube-dl-x
[1] 14559
[2] 14560
killall: cannot kill pid 14551: No such process
killall: kill: no process killed
killall: y: no process killed
killall: kill: no process killed
killall: youtube-dl-x: no process killed
[1]- Exit 1 killall mplayer
[2]+ Exit 2 killall kill y
 
Addison's Avatar
Posts: 3,811 | Thanked: 1,151 times | Joined on Oct 2007 @ East Lansing, MI
#482
I only had Xterm running when I took this screenshot.

 
Posts: 875 | Thanked: 918 times | Joined on Sep 2010
#483
Originally Posted by Addison View Post
It still won't die....
killall mplayer & killall kill y & killall kill youtube-dl-x
First off, the command should not have those kill's in it unless you have a process called "kill" that you want to kill multiple times. Second, the command I told you to use was killall mplayer youtube-dl-x y, one command, not three. Doesn't matter though because I forgot that python scripts show up as "python".

Run the y script to begin downloading a video and then run ps aux|grep python and see what it prints out. Should be something like python youtube-dl-x or python /usr/bin/youtube-dl-x on the end of the line. Use that in place of XXX below.

Code:
kill `ps aux|grep "python XXX"|awk '{print $2}'`
killall mplayer
That should kill youtube-dl-x and then kill mplayer.

Let me know what the y script shows up as by running ps aux and I can tell you how to kill it.
 

The Following User Says Thank You to auouymous For This Useful Post:
Addison's Avatar
Posts: 3,811 | Thanked: 1,151 times | Joined on Oct 2007 @ East Lansing, MI
#484
Okay.

[1|user@Nokia-N800-43-7|~]ps aux|grep python
19603 user 13400 SW< python /usr/bin/youtube-dl-x --no-part -f 5 -o %(stit
19716 user 3956 RW grep python



[1|user@Nokia-N800-43-7|~]kill `ps aux|grep "python /usr/bin/youtube-dl-x"|awk '{print $2}'`
-bash: kill: user: no such pid


[1|user@Nokia-N800-43-7|~]kill `ps aux|grep "python /usr/bin/youtube-dl-x --no-part -f 5 -o %(stit"|awk '{print $2}'`
-bash: kill: user: no such pid
 
Addison's Avatar
Posts: 3,811 | Thanked: 1,151 times | Joined on Oct 2007 @ East Lansing, MI
#485
Also, I tried to Google ffprobe for Diablo Maemo and I don't think it exists.

Oh well.

Cheers.
 
Posts: 875 | Thanked: 918 times | Joined on Sep 2010
#486
Originally Posted by Addison View Post
[1|user@Nokia-N800-43-7|~]kill `ps aux|grep "python /usr/bin/youtube-dl-x"|awk '{print $2}'`
-bash: kill: user: no such pid
Oops, forgot that maemo's ps reverses order of user and pid.

Code:
kill `ps aux|grep "python /usr/bin/youtube-dl-x"|awk '{print $1}'`
Try looking for a lame package for maemo and I can tell you how to convert to mp3 with it.
 

The Following User Says Thank You to auouymous For This Useful Post:
Addison's Avatar
Posts: 3,811 | Thanked: 1,151 times | Joined on Oct 2007 @ East Lansing, MI
#487
You're a genius. It worked.

I'll look for that lame package later tonight.

Thank you.
 
Addison's Avatar
Posts: 3,811 | Thanked: 1,151 times | Joined on Oct 2007 @ East Lansing, MI
#488
Would anyone here happen to have lame?

Debfarm failed to refresh.
 
Addison's Avatar
Posts: 3,811 | Thanked: 1,151 times | Joined on Oct 2007 @ East Lansing, MI
#489
Well, that was short lived.

I'll try to break this down.

/usr/bin/stop
kill `ps aux|grep "python /usr/bin/youtube-dl-x --no-part -f 5 -o %(stit"|awk '{print $2}'`
killall mplayer


I have one video fully downloaded in my Videos folder and I begin to download something else.

Once it begins to play:
ps aux|grep python
1879 user 13384 SW< python /usr/bin/youtube-dl-x --no-part -f 5 -o %(stit
1942 user 1796 RW grep python

I'll then try to kill the download:
stop
/usr/bin/stop: line 1: kill: user: no such pid
killall: cannot kill pid 1933: No such process

Mplayer does close so I'm not sure why there is an error on that last line.

I'll highlight both videos in File Manager and attempt to delete them.

One will go away, the other is currently being used so it has to stay.

I'll try to kill it again:
stop
/usr/bin/stop: line 1: kill: user: no such pid
killall: mplayer: no process killed

Back to File Manager and now I can delete the current video download.

Again, if the Videos folder is empty in the beginning, then there's nothing I can do to stop the current download.

There has been a couple of times where your new script fully worked though.

Maybe it's usually reading the wrong PID for some reason...

Any fresh ideas?
 
Posts: 875 | Thanked: 918 times | Joined on Sep 2010
#490
Originally Posted by Addison View Post
There has been a couple of times where your new script fully worked though. Any fresh ideas?
You could try actually using my new script. Re-read my last post and edit the script before trying again.
 

The Following User Says Thank You to auouymous For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 11:11.