开发者

Detecting input redirection file

开发者 https://www.devze.com 2023-03-03 15:43 出处:网络
How can we detect/fetch the name of a file that\'s fed as an input redirection to a java program from the command line开发者_如何学运维?Without OS-specific hacks (such as running ps -ef) you can\'t.

How can we detect/fetch the name of a file that's fed as an input redirection to a java program from the command line开发者_如何学运维?


Without OS-specific hacks (such as running ps -ef) you can't.

Why do you need this information, and why can't you restructure your program to simply take the file as a command-line argument?

0

精彩评论

暂无评论...
验证码 换一张
取 消