I have a program written in C/C++ that reads two files and then generate some reports. The typical workflow is as follows:
1> scp user@server01:/temp/file1.txt ~/ then input my password for the prompty
2> my_program file1.txt localfile.txt
Is there a way that I can let my program directly handle the remote file without explicitly copying the file to local first? I have tried the following command but it doesn't work for me.
> my_program <(ssh user@server01:/temp/file1.txt) localfile.txt