Gnutella Forums

Gnutella Forums (https://www.gnutellaforums.com/)
-   FrostWire (https://www.gnutellaforums.com/frostwire/)
-   -   Launching\contrloling from a console in Linux? (https://www.gnutellaforums.com/frostwire/52694-launching-contrloling-console-linux.html)

2BWK-X February 5th, 2006 07:44 PM

Launching\contrloling from a console in Linux?
 
I recently got FrostWire as part of an Ubuntu Linux distro, it seems like a nice program but slows the machine down too much to use with other stuff. (This isn't a problem in itself because the machine in question has only 2 Pentium Pros at 200MHz a piece.)

I'm still new to working with Linux but I was thinking about setting it to automatically execute at night and then shut off in the morning with KAlarm, however at the moment I'm not sure how. I only realized it was a java app after several minutes and chance look at the processes screen.

Assuming this in't too off topic for this forum I would like to know how I would go about launching FrostWire from a command line, shutting down the same way as well as any other interesting or worthwhile arguments that could be passed to it...or a link to said information I may have missed in which case I apologize for being sloppy.

Thank you in advance for any information.

limewire February 6th, 2006 02:56 PM

I haven't actually tried this, but editing /etc/crontab should work. Depending on your setup you could add lines for starting and stopping frostwire as so...
Code:

00 9    * * *  root    cd /opt/FrostWire;sh runFrost.sh
00 17  * * *  root    kill -9 `pgrep -f Frost`

You would then need to restart the cron service. This would start frostwire 9 am everday and stop at 5pm. Edit to fit your needs/setup (test on an actual command-line first).

2BWK-X February 7th, 2006 07:31 AM

Thank you that information; it put me on the right track. I wasn't even aware of cron. :) It seems but you can't stick a pgrep command inside a kill but people must want to do this a lot because there is actully a seperate pkill command that is essentially both rolled into one. Anyway thank you, I shall get around to testing this once I get home from writing my exam.

limewire February 7th, 2006 01:59 PM

The pgrep inside the kill will work, but pkill is fine also.


All times are GMT -7. The time now is 06:12 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 ©2011, Crawlability, Inc.

Copyright © 2020 Gnutella Forums.
All Rights Reserved.