Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
このコマンドを C/C++ プログラムで実行したいと思いstat -c "%F %A %n" *filename goes here* ます。ファイル名はmain関数のargv[1].
stat -c "%F %A %n" *filename goes here*
main
argv[1]
としてみましたexecl("/bin/stat", "stat", "-c", "\"%F %A %n\"", "file", NULL);
execl("/bin/stat", "stat", "-c", "\"%F %A %n\"", "file", NULL);
execl()結果を達成するためにコマンドはどのように見えるべきですか?
execl()