You need to do two things:Now, about Linux, what exactly should I do?
1. Add a line (the so-called "shebang") at the beginning of the script specifying which interpreter should run it; here is an example of a Hello world script for sh:
Depending on what you want to do you might leave that to the user of your application.Qt Code:
#!/bin/sh echo "Hello world"To copy to clipboard, switch view to plain text mode
2. Make the script executable by its owner. See QFile::setPermissions().




Reply With Quote

Bookmarks