Closed victor-timofei closed 3 years ago
@victor-timofei code change was not required.... just start with ${PWD}
./htpdate -D -s -i ${PWD}/htp.pid www.wikipedia.org
You can even do:
${PWD}/htpdate -D -s -i ${PWD}/htp.pid www.wikipedia.org
I know it is not essential, but it improves the usability. Many users, including me, expect relative paths to work.
In the example below:
It will create a file in the root directory instead of the directory from which the program was launched.