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.
Hi,
I am using netcat for a shell, and I will be connected, but when inside the shell, if I need to use "ctrl-c", it will end up killing netcat instead of the program I am running in the shell on the other machine. I've tried playing around with trap, and I read the man pages for netcat, but I can't figure out a way to have netcat not die on ctrl-c. Any ideas?
Why not just log in with a proper service like ssh? Note that hacking (as in system cracking, not the original technology enthusiast definition) discussions are not welcome on LQ. My apologies for the implication if your purpose is good, it's just that this is a very classic h@x0r technique for getting a remote shell.
Last edited by matthewg42; 03-31-2008 at 06:22 PM.
i'm not sure if that will work.. even though you'll be able to configure netcat to handle ^C in the local machine and be able to send the ^C character.. you still won't be able to summon the signal.. i think it can only be done in the remote machine.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.