#!/usr/bin/perl -w # hash # Client: use strict ; use Socket ; my $ok = 0 ; # Define the door: my $port = 7000 ; # Define the host (IP number only): my $host = 127.0.0.1 ; sub welcome () { print < ; if ("$msg" eq "exit\n") { --$ok ; print "$ok commands are successfully executed on remote server\n" ; exit 0 ; } send(SO, "$msg", 1024,0); while () { print ; } } #EOF