Hi.
A student brought me a short text file on a floppy (dos format).
Mounted floppy, & printed file
get blank sheet!
When I ran /usr/bin/file on txt file, get
file /tmp/a.mm
/tmp/a.mm: fsav (linux) virus (29545-120)
Had a look at /usr/share/magic & find
grep -i virus /usr/share/magic
# fsav: file(1) magic for datafellows fsav virus definition files
0 beshort 0x1575 fsav (linux) macro virus
>11 leshort >0 fsav (linux) virus (%d-
What gives?
I take it that some garbage in file is confusing "file"?
Any thots?
John
PS
I am embedding file here as ilug doesnt allow attachments in postings.
mu = 1;
xlist = [];
x0 = [2,2];
xlist = x0;
k=1;
lambda = 1;
kmax = 100;
options = optimset('Largescale','off');
while k<kmax %&(gradient =0)
con = (x.^2 + y.^2 - 1);
%con = (x(1)^2 + x(2)^2 - 1);
abs(con)>=sqrt(eps);
[x,fval,lambda,exitflag,output]=fmincon('objworking',x0,options,[],[],[],[],[],[],'confun33');
mu = mu*2;
lambdanew = lambda +2*mu*con;
xlist=[xlist' x']';
k=k+1;
end
John A. Kinsella Ph: +353-61-202148 (Direct)
+353-61-333644 x 2148 (Switch)
Mathematics Dept. e-mail: John.Kinsella at ul.ie
University of Limerick FAX: +353-61-334927
IRELAND Web: http://jkcray.maths.ul.ie
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!