add crontab daemon

I'm trying to simulate a socket client using simple perl program.

socket client:

#path: /home/nuthan/client1
use IO::Socket;
my $sock = new IO::Socket::INET ( PeerAddr => 'xx.xx.xx.xx',  PeerPort => '11050',     Proto => 'tcp',  );
die "Could not create socket: $!\n" unless $sock;
    use POSIX 'strftime';
$time=strftime("%H%M%S",localtime) . "\n";
print $data;
print $sock "$data";

command: bash script to execute
#path: /bin/server
set PATH=/usr/bin/perl
export PATH
#perl home/nuthan/client1

crontab command:

Run this socket client every 60 secs.

* * * * * server 2>&1 >> /var/log/client.log

Error: Finally, i get this Error!!!

No command 'bin' found, did you mean:
 Command 'win' from package 'wily' (universe)
 Command 'tin' from package 'tin' (universe)
 Command 'bip' from package 'bip' (universe)
 Command 'bing' from package 'bing' (universe)
 Command 'bins' from package 'bins' (universe)
bin: command not found

WHERE AM I GOING WRONG!!!!? please help!!!


You should not set PATH to the perl executable but instead to the directories containing the tools you want to use, e.g.

export PATH=/bin:/usr/bin

Need Your Help

Jersey REST request object change

java rest jersey client-server jax-rs

My client and server use the following request object for POST :

Available space left on drive - WinAPI - Windows CE

winapi pinvoke windows-ce diskspace

I've forgotten the WinAPI call to find out how much space is remaining on a particular drive and isn't giving me any love.