[LUGOS-PROG] Kako najelegantnejse zazenem skripto iz aplikacije !
Jure Koren
jure at hehe.si
Fri Mar 21 14:48:51 CET 2008
On Friday 21 of March 2008 13:58:17 Klemen Omejc wrote:
> Pozdravljeni !
>
> Rad bi iz aplikacije FLTK zagnal 2 konzoli, za vsako posebej bi ob zagonu
> dolocil katero skripto naj izvaja.
>
> Puskusil sem
> popen("konsole /home/bar/skripta.sh","w"); // Ta mi secer odpre
> konsolo, vendar ne zazene skripte, kar bi tudi rad !
>
> Poskusil sem
> execl("sh","/home/bar/skripta.sh", "skripta.sh", (char *)NULL); Ta
> sicer deluje, ce applikacijo predhodno odprem v ta isti konzoli.
man konsole:
-e <command> [ arguments ]
Execute ’command’ instead of shell. It also sets the window
title and icon name to be the basename of the program being
executed if neither -T nor -n are given on the command line.
This must be the last option on the command line.
--
Jure Koren, unix developer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://liste2.lugos.si/pipermail/lugos-prog/attachments/20080321/01d50e1a/attachment.pgp
More information about the lugos-prog
mailing list