Help for this page

Select Code to Download


  1. or download this
        my $file = "/mnt/adtest/qa1/file1";
        my $writeline = "# $test->{currentuser} wrote timestamp " . time()
    +;
        my $command = "echo $writeline >> $file";
        my $output = `$command 2>&1`;
    
  2. or download this
    [root@qanode1-2 latest]# echo "qauser1 wrote timestamp 1414118740-1" >
    +> /mnt/adtest/qa1/file1
    -bash: /mnt/adtest/qa1/file1: Permission denied