in reply to Re^4: How to call Linux command sequentially
in thread How to call Linux command sequentially

system ("comand1 && comand2");

Runs for me. If you can't do this try a pipe or go to sleep

system ("sleep 50 && touch file1");

also run

Replies are listed 'Best First'.
Re^6: How to call Linux command sequentially
by mv.ashwin@gmail.com (Novice) on Sep 13, 2011 at 10:39 UTC
    tried this did not work, untill i exit from command1 command2 will not execute. If i use other commands like mkdir touch all works fine but for my command above which creates the environment i will go idle untill i exit from command1(which creates an environment)

      We probably could help better if we know what exactly the first command does, and why do you need to make such thing as create a file using touch FROM a perl script

      `command 1`; open a_file;