I am very new to perl. I am trying to create a perl script which will execute multiple unix command to create VNC session in some unix server.
Here is my script -
#!/usr/bin/perl -w
use Carp;
use strict;
use warnings;
# here get the parameters idsid
my $IdsId=$ARGV[0];
#excecute the commands here
my $user=`su -l $IdsId`;
my @finalresult=`vncserver -randr 1024x768,800x600,1024x768,1152x824,1280x1024,1280x800,1440x900,1400x1050,1600x1200,1920x1200`;
print "@finalresult";
But when I am executing this script its not working.
Please some body help me.
my $user=`su -l $IdsId`;?