Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I did a search online for a ktorrent man page but I seem to be only finding information about the graphical interface.
Is there a way I can change open ports while the program is running through the terminal?
My situation:
I am using a VPN for my main connection but the VPN normally blocks incoming ports. I can get around this by using a utility from them(it opens a port for me and sends me the port number). For linux, however, I need to do this manually and the port number periodically changes on the VPN side.
Finding the port is no problem. The problem is that the port changes from time to time; so I would like to make a cron script that finds the port and then changes it in ktorrent while its still running. Currently I need to always put the port in manually which is not a good option.
What I want to do:In a cron script that runs every hour.
1. Get my port number from my terminal command.
2. Change the ktorrent port number.
ktorrent is a graphical application designed to work with the KDE desktop. I haven't used it--I tend to use GFTP--but I suspect that it may not be the best candidate for manipulation via a cron job, especially when you are logged out of your desktop. If I'm wrong, I hope someone corrects me; that's how I learn.
This is just a shot in the dark, but it might be easier to work with a command-line application, such as ftp itself.
Use rtorrent, its a lightwieght full featured bittorrent client driven by the command line. I just started using it myself, not an expert but from what i read so far it is awesome. Gonna read up on the configuration a little more then get deep into tomorrow.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.