@arr = split('/',$datagram1); $arr_length = @arr; $new_photo = $arr[$arr_length-1].""; print "Open #".$new_photo."#\n"; sleep(3); system("killall shotwell"); #$new_photo = "DSC_0198.JPG"; system("shotwell $new_photo &"); print "test\n";