Re: New to Informix, asking for help on running the 'system' command on
Posted in 2008
gerrit.schutte@gmail.com said:
> All -
>
> I have installed Informix 11.50 DB on my Windows XP box. When running
> the 'system' via the 'dbaccess' command such as in:
>
>
> create procedure test_procedure()> define command varchar(255);
> let command = 'dir > c:\\tmp\\text.txt';
Try:
let command = 'dir c:\\ > c:\\tmp\\text.txt';
The system command does not, by default, have a directory that it can
list, AFAIK.
> system command;
> end procedure;
> grant execute on procedure test_procedure() to 'public'; execute> procedure test_procedure();
>
> I receive the following error message:
>
> 668: The system command cannot be executed or it exited with a non-> zero status
> 2: No such file or directory
>
> What is it that I do wrong? Any help very appreciated.
>
> Thanks in advance,
> Gerrit
> _______________________________________________
> Informix-list mailing list
> Informix-list@iiug.org
> http://www.iiug.org/mailman/listinfo/informix-list
>
>
--
Bye now,
Obnoxio
http://obotheclown.blogspot.com/