<s> import commands <EOL> def test ( data_path ) : <EOL> folder_data = [ '<STR_LIT>' , '<STR_LIT>' ] <EOL> file_data = [ '<STR_LIT>' , '<STR_LIT>' ] <EOL> cmd = '<STR_LIT>' + data_path + folder_data [ <NUM_LIT:0> ] + file_data [ <NUM_LIT:0> ] <EOL> status , output = commands . getstatusoutput ( cmd ) <EOL> from time import sleep <EOL> sleep ( <NUM_LIT:1> ) <EOL> if status == <NUM_LIT:0> : <EOL> cmd = '<STR_LIT>' + data_path + folder_data [ <NUM_LIT:1> ] + file_data [ <NUM_LIT:1> ] <EOL> status , output = commands . getstatusoutput ( cmd ) <EOL> return status , output <EOL> if __name__ == "<STR_LIT:__main__>" : <EOL> test ( ) </s>
