[xubuntu-users] How to run script/program from C program using Geany
Phil Whitaker
xubuntu-users at beardygnome.co.uk
Thu May 26 08:21:57 UTC 2011
I think this might be because you are running Geany, and therefore the shell
process, as yourself rather than root (as you should be!), so you don't have
permission to access /bin/. As for a solution, I'm afraid I can't help
there, sorry.
Phil
beardygnome.co.uk <http://www.beardygnome.co.uk>
On 24 May 2011 12:46, sam <asu_mcs at yahoo.com> wrote:
> I have a C executable program (test.out) to perform a test on a specific
> image format.
>
> When I run it from the terminal: *./test.out ../absolute
> path/filename.jpg*
>
> It runs fine and I get the right result.
>
> *BUT:*
>
> When I try to run it from a another C Program using Geany :
>
> *System("/bin/ ./test.out ../absolute path/filename.jpg ");*
>
> **
>
> I get an error during execution time:
>
> *sh:/bin/: Permission denied*
>
>
> --
> xubuntu-users mailing list
> xubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/xubuntu-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/xubuntu-users/attachments/20110526/e00b06f0/attachment.html>
More information about the xubuntu-users
mailing list