using nc to simulate a service

トップ ページ
添付ファイル:
Eメールのメッセージ
+ (text/plain)
このメッセージを削除
このメッセージに返信
著者: Jeremy C. Reed
日付:  
題目: using nc to simulate a service
On Tue, 12 Aug 2003, Mike Starke wrote:

> #! /usr/bin/perl
> system ("touch /home/me/it_worked-$ARGV[0]");


The "parameters" you mentioned are not command line arguments.

They become the standard input to the script.

Your script should read from standard input and store that data.

(Of course, you should limit how much data is read and also limit what is
saved based on what is accepted as your valid input.)

Jeremy C. Reed
http://www.reedmedia.net/