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
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ lugos-prog mailing list [email protected] http://liste2.lugos.si/cgi-bin/mailman/listinfo/lugos-prog
