![]() |
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. |
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 |
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. |
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.