Dear.
I need to read /proc/pid/cmdline files
But if i use a standard function that read file with
assign,"readln",EOF some important non-printables caracters are not
trapped
with fpc readln :
imapd-s-U30
if i use cat -v "cat -v /proc/26328/cmdline"
[EMAIL PROTECTED]@[EMAIL PROTECTED
Dear
I'm trying to find examples using libmilter (sendmail milter) with
freepascal.
Does anybody have usefull links or code with it ?
best regards
--
David Touzeau -- Linux Ubuntu 7.04 feisty
FreePascal-Lazarus,perl,delphi,php artica for postfix management console
(ht
Dear
I'm using a 32 bits Linux system to developp and i want my program to be
64 Bits compatible.
What is the best method to allow my program to be compatible on 32 And
64 bits ?
Besst regards
--
David Touzeau -- Linux Ubuntu 7.04 feisty
FreePascal-Lazarus,perl,del
It's a 2.2.0 :
Free Pascal Compiler version 2.2.0 [2007/08/30] for i386
Copyright (c) 1993-2007 by Florian Klaempfl
/usr/lib/fpc/2.2.0/ppc386 [options]
Jonas Maebe a écrit :
On 28 Dec 2007, at 12:06, TOUZEAU DAVID wrote:
I have many warning like
(966,12) Hint: Local variable "X
Dear
I would like to send a TStringList.text to an external process (kind of
stdout)
i have an external process that require to receive datas from stdin
like /home/process1 I would like my program to send datas inserted into a Tstringlist to
this "process1"
I think i should use "Output" bu
adln(st,s); //<<< read only a line
writeln(s);
end;
close(st); // <<<<<---
end.
--
Att,
Wanderlan Santos dos Anjos
On Nov 24, 2007 8:15 AM, TOUZEAU DAVID <[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>> wrote:
Dear
What is the best way to
Dear
What is the best way to read into a memory datas from this command.
"/bin/myprogram end.
--
David Touzeau -- Linux Ubuntu 7.04 feisty
FreePascal-Lazarus,perl,delphi,php artica for postfix management console
(http://www.artica.fr) icq:160018849
__
Dear
I need to parse /var/log/maillog file in the same way of /bin/tail tool
in order to parse some lines.
What is the best way or do you have such function that follow the write
lines in a file ??
Best regards
--
David Touzeau -- Linux Ubuntu Dapper 6.0.6
FreePasca
, patrick feillant wrote:
MilliSecondsBetween<http://lazarus-ccr.sourceforge.net/fpcdoc/rtl/dateutils/millisecondsbetween.html>
Maybe simpler Secondsbetween() ? :o)
2007/6/4, TOUZEAU DAVID <[EMAIL PROTECTED]>:
Is there a function that help me to calculate seconds sin
values.
between encodedatetime(1970,1,1,0,0,0,0) and Present
I don't test, but it's probably ok.
bye
2007/6/4, TOUZEAU DAVID <[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>>:
Dear
Is there a function that help me to calculate seconds since 1970
year ?
Dear
Is there a function that help me to calculate seconds since 1970 year ?
exactly the same of this command :
/bin/date +%s -d 20070103
best regards
--
David Touzeau -- Linux Ubuntu Dapper 6.0.6
FreePascal-Lazarus,perl,delphi,php icq:160018849
Dear
I need to return the correct mask of chmod permission, in this case,
i have copy the FPC example , but i cannot convert "info.st_mode" in
human readable mask (0777, 0755...)
For example, with a file in 0755 mask the function return 16877 value
in info.st_mode.
best regards
unit bas
Thanks marco for the way
i have copy the example , but how can i convert "info.st_mode" in human
readable mask (0777, 0755...)
For example, a file in 0755 mask is 16877 value in info.st_mode.
best regards
unit base_unix;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils,variants, Linux
hello
Is there anybody has worked with STAT_IRWXG ?
http://www.freepascal.org/docs-html/rtl/oldlinux/index-2.html
I need infos in order to get a function that get file permissions on
linux system (like 0777, 0755...)
best regards
--
David Touzeau -- Linux Ubuntu Dap
Yes The problem is fixed now by adding libssl.so.0 link
Lukas Gebauer a écrit :
Currently synpase doesn't working with ssl mode but
if you want to do this in linux environement LibCurl is a good way and
do that you want... http://curl.haxx.se/libcurl/pascal/
The only problem that it require *.s
oblem with synapse in SSL mode in order to not
install others librairies...
Rainer Stratmann a écrit :
Am Samstag, 25. November 2006 04:09 schrieb TOUZEAU DAVID:
Dear
I'm searching examples that help me to implement on a linux system an
HTTP client that supporting SSL HTTPS in ord
Hum Thanks for the information but i'm developping an Open Source
application... This module is not free version... 5 655$ is a little bit
expensive for me :=)
Eugene Mayevski a écrit :
Hello!
You (TOUZEAU DAVID [mailto:[EMAIL PROTECTED]) wrote
about "[fpc-pascal] [HTTPS]: Looking
Dear
I'm searching examples that help me to implement on a linux system an
HTTP client that supporting SSL HTTPS in order to post, get and
downloading files with or without proxy support...
A kind of functions
in the same way of synalist THTTPSend
(http://www.ararat.cz/synapse/docs/help/inde
, TOUZEAU DAVID wrote:
Dear
my application run has a daemon
When the daemon load, it create a Timer function as a class(TThread).
This Timer thread has a loop and create an another Thread (called "SendStatus"
each 5 minutes)
function that l
longint
n:=StrToHostAddr('255.255.0.0').s_addr;
ia.s_addr:=a and n;
writeln('Network ->',HostAddrToStr(ia));
ia.s_addr:=a or not n;
writeln('broadcast ->',HostAddrToStr(ia));
Michael Van Canneyt a écrit :
On Thu, 12 Oct 2006, Michael Van Canneyt wrote:
dear
Currently i use RegExpr2
(http://z505.com/cgi-bin/qkcont/qkcont.cgi?p=Regexpr2) to perform regex
matching..
did SynRegExpr
(http://www.lazarus.freepascal.org/lcl_doc/SynRegExpr.html#link23852)
unit is better than RegExpr2 ?
How to use SynRegExpr unit ?
Currently my code to use RegEx
Dear
The tool is designed to simplify the change network settings quickly.
So the goal for the admin is to type:
#./tool 192.168.1.2 255.255.255.0 192.168.1.1
and the tool will change settings in /etc/network/interfaces by
iface eth0 inet static
address 192.168.1.2
netmask
Dear
I develop a tool that change the network settings in /etc/network/interfaces
the config file must be
iface eth0 inet static
address 192.168.xx.xx
netmask 255.255.255.0
network 192.168.xx.0
broadcast 192.168.xx.255
gateway 192.168.xx.xx
In this cas
Many thanks i found the function GetEUID i'll try it
http://www.cs.uwc.ac.za/~firstyear/manuals/doc/units/unitsse36.html#x53-41900012.3
Pete Cervasio a écrit :
On Wednesday 11 October 2006 20:44, Michalis Kamburelis wrote:
Pete Cervasio wrote:
The better way would be to use the geteu
Dear
I need to detect if the program is executed as root privileges on Linux
system.
Did somebody had developped a such function ??
Best regards.
--
David Touzeau -- Linux Ubuntu Dapper 6.0.6
FreePascal-Lazarus,perl,delphi,php icq:160018849
Many Thanks vincent
exactly what i want to find !!!
Vincent Snijders a écrit :
TOUZEAU DAVID schreef:
Dear
I would like to crypt some files/strings/datas with fpc on Linux
systems.
What unit can i use to provide this feature ?
I there a standard unit or somebody had already developped a
Dear
I would like to crypt some files/strings/datas with fpc on Linux systems.
What unit can i use to provide this feature ?
I there a standard unit or somebody had already developped a such unit ?
--
David Touzeau
--
Linux Ubuntu Dapper 6.0.6
FreePascal-Lazarus,perl,delp
Dear
is anybody there use visualserver from VisualSynapse
(http://visualsynapse.sourceforge.net/?id=8) and impleted it on Linux
has a console mode...??
Examples given is only on application interface ...
Problems:
1) When the application start, no web page are generated...
2) i would like t
Many thanks to the community
To reply to Graeme :
why not just use the /sbin/ifconfig output ?
Simply to be more dev compliance... using an external program is slower
and sometime ifconfig doesn't exist or is deleted on target computers.
To reply to Marco :
And the only "good" solution is a po
Many Thanks for this way jeff...
/proc/net/dev is more compatible
Impressed it
for your information.
My program will run only on linux system...
Marco van de Voort a écrit :
I would parse /proc/net/dev instead
Better, but still Linux only. For a good solution, a resolver unit that
ac
Many thanks Vincent
the {$mode delphi} is a good way...
Vincent Snijders a écrit :
TOUZEAU DAVID schreef:
Dear
I would like to use some units developped from delphi/klyx with
Lazarus IDE On Linux.
It seems that there is some differences between delphi/freepascal
especially for longstring
Dear
I would like to use some units developped from delphi/klyx with Lazarus
IDE On Linux.
It seems that there is some differences between delphi/freepascal
especially for longstring conversion.
Many times, i received this compilator error :
For example by using the LibTar.pas
(http://www
OK i understand that i using i386 no 64 bits
Marco van de Voort a écrit :
This function works perfectly without need to regex ifconfig... And i
use glibc
I develop only on linux system.
Note that it is linux/x86 only. No 64-bit, or other platforms.
--
David Touzeau --
Many Thanks Jeff and Micha.
This function works perfectly without need to regex ifconfig... And i
use glibc
I develop only on linux system.
Great respects...
Just another question... (this because i came from Windows OS) how can i
list wich interface loaded without need to parse /etc/networks
Hi
I'm trying to write a function to read the local IP eth0/eth1... using
glibc library...
I found only examples that found the 127.0.0.1 IP but not the real IP :
http://community.freepascal.org:1/bboards/message?message_id=233776&forum_id=24083
http://lists.freepascal.org/lists/fpc-pasca
35 matches
Mail list logo