Exec Method is used to execute unix commands:
Following is a sample syntax for copying a file from one directory to another .
&strCmd = "cp " | file path1 |"/abc.txt" | " " | file path 2|"/abc.txt";
&exitcode = Exec(&strCmd, %Exec_Asynchronous + %FilePath_Absolute);
Similarly Syntax for changing Permission for a file
/**Changing Permision*/
&strCmd = "chmod 777 " | file path |"/abc.txt";
&exitcode = Exec(&strCmd, %Exec_Asynchronous + %FilePath_Absolute);
Following is a sample syntax for copying a file from one directory to another .
&strCmd = "cp " | file path1 |"/abc.txt" | " " | file path 2|"/abc.txt";
&exitcode = Exec(&strCmd, %Exec_Asynchronous + %FilePath_Absolute);
Similarly Syntax for changing Permission for a file
/**Changing Permision*/
&strCmd = "chmod 777 " | file path |"/abc.txt";
&exitcode = Exec(&strCmd, %Exec_Asynchronous + %FilePath_Absolute);