LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 09-26-2009, 06:25 AM   #1
redss
Member
 
Registered: Jun 2003
Posts: 167

Rep: Reputation: 16
netcat question


Is there a way for a script like below to have netcat automatically disconnect after piping to netcat?

Code:
echo DEFINE wn word | netcat dict.org 2628
 
Old 09-26-2009, 12:51 PM   #2
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
echo -e "DEFINE wn word"\\nquit | netcat dict.org 2628
 
Old 09-26-2009, 01:17 PM   #3
redss
Member
 
Registered: Jun 2003
Posts: 167

Original Poster
Rep: Reputation: 16
thanks!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
netcat -e Devilz Linux - Networking 5 01-03-2008 02:05 AM
Netcat s0n|k Linux - Newbie 3 04-16-2006 05:16 PM
Newbie Install Question Netcat Jagtek Linux - Newbie 8 04-04-2006 06:38 PM
netcat question overbored Linux - Software 13 10-30-2004 04:26 PM
Netcat question igor8 Linux - Security 3 06-21-2004 12:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:54 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration