help-glpk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-glpk] Passing command line paramters to GLPK


From: Nigel Galloway
Subject: Re: [Help-glpk] Passing command line paramters to GLPK
Date: Tue, 20 May 2008 13:05:43 +0100

If you require security better not to use MySQL. Use a dtatabase where the 
access rights are based on the operating systems user accounts. If you supply 
the password on the command line it is available system wide to any user who 
types in 'ps' on unix a utility which lists all running commands, including 
parameters passed.


> ----- Original Message -----
> From: "glpk xypron" <address@hidden>
> To: "Andrew Makhorin" <address@hidden>
> Subject: Re: [Help-glpk] Passing command line paramters to GLPK
> Date: Sat, 17 May 2008 07:39:51 +0200
> 
> 
> Hello Andrew,
> 
> when invoking AMPL from the command line it is not possible to pass 
> parameter assignments on the command line (tested with the student 
> version).
> 
> Commands can be passed as pipe, e.g.
> ampl.exe < test.txt.
> 
> type test1.txt con: test2.txt | ampl.exe
> will execute the commands in test1.txt, allow entry from the 
> console until CTRL-Z, and afterwards execute the commands in 
> test2.txt.
> 
> As AMPL can be executed interactively of cause passwords could be 
> entered at the ampl prompt:
> 
> C:\Program Files\AMPL> ampl.exe
> ampl: model 1.mod;
> ampl: param password_ali_baba := 'open sesame';
> ampl: data 1.dat;
> ampl: solve;
> ampl: quit;
> 
> Best regards
> 
> Xypron
> 
> -------- Original-Nachricht --------
> > Datum: Fri, 16 May 2008 15:27:43 +0400
> > Von: Andrew Makhorin
> > An: xypron
> > CC: Help-glpk
> > Betreff: Re: [Help-glpk] Passing command line paramters to GLPK
> 
> > > for using SQL queries the database password must be used in the GLPK
> > model.
> > > It is unwise to save passwords in unencrypted files. In business
> > > environments regulation often explicitly forbids such behavior.
> >
> > > The solution you kindly suggested would leave the password on the
> > harddisk.
> >
> > > Being able to use additional command line parameters would allow to
> > > circumvent the problem.
> >
> > The other way might be passing the model file to glpsol through a pipe.
> >
> > It would interesting to know how this problem is resolved in the AMPL
> > system. May be someone on the list knows that?
> 
> --
> Psssst! Schon vom neuen GMX MultiMessenger gehört?
> Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger
> 
> 
> _______________________________________________
> Help-glpk mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/help-glpk

>


-- 
_______________________________________________
Surf the Web in a faster, safer and easier way:
Download Opera 9 at http://www.opera.com

Powered by Outblaze




reply via email to

[Prev in Thread] Current Thread [Next in Thread]