dd command does not work with system function

Issues related to applications and software problems and general support
Post Reply
chassap1
Posts: 24
Joined: 2017/10/24 14:23:59

dd command does not work with system function

Post by chassap1 » 2021/06/17 18:54:41

we have an application that uses the Linux system() function to call the Linux dd command write to a USB drive. The system command does not return any error codes, it returns 0, but it doesn't write the file. When we run the dd command from the command line, the file is created. The application uses the system() function for other commands with no problems. This used to work in fedora 20. The application is running as root. We are using CentOS 8.2. Any ideas?

Post Reply