I am getting an error when I do this in C program:
execl("/bin/cp","../data/data_.txt","../data/data.txt",0);
error is as follows:
../data/data_.txt: missing destination file operand after `../data/data.txt'
Try `../data/data_.txt --help' for more information.
I tried this too, it didn't help.
execl("/bin/cp ../data/data_.txt ../data/data.txt",0);
All I am trying to do is this:
cp ../data/data_.txt ../data/data.txt