Benoît Minisini ha scritto:
these are shell commands, cat and echo
cat shows the contents of a file and echo print a string in screen
we use redirection which is
to a device printer /dev/lp0 or lp1 or lp2 see what is your printer
To print a file you can write in shell or in gambas SHELL
Demosthenes Koptsis ha scritto:
in shell you can do it by
echo Program started /var/log/messages
note* means redirection to the end of file, so it is append
if you type you will erase the contents of the file and put only
Program started
now you can use this command with SHELL.
Il giovedì 24 settembre 2009 12:10:50 Doriano Blengino ha scritto:
Demosthenes Koptsis ha scritto:
in shell you can do it by
echo Program started /var/log/messages
note* means redirection to the end of file, so it is append
if you type you will erase the contents of the file and
Thank you all for your help.
I have tried the following printing SUB:
PUBLIC SUB bEktiposi_Click()
DIM hPrinter AS Printer
DIM hFile AS File
hPrinter = OPEN dev/lp1 FOR OUTPUT
hPrinter.EndOfLine = gb.Windows
PRINT #hFile, test a line: ;
CLOSE
Vassilis K ha scritto:
It is a typogriphic error.
I wrote it as /dev/lp1
Every file in unix has permissions you can change with chmod:
chmod a+w /dev/lp1
(ran as user root). It will give everyone permission to use /dev/lp1.
Or, you can check/change only the permission for the group.
You are right!
It works without root privileges with:
echo this is a test | lpr -P lpt2
but it feeds all the paper !!
I 'll try to find a way not to feed the paper !!
--
Come build with us! The BlackBerryreg;
see the manual
man lpr
man pr
On Thu, Sep 24, 2009 at 3:18 PM, Vassilis K vka...@otenet.gr wrote:
You are right!
It works without root privileges with:
echo this is a test | lpr -P lpt2
but it feeds all the paper !!
I 'll try to find a way not to feed the paper !!
Hi,
I tried printing line-by-line directly to the raw device and got into awful
overlapping (? buffering) problems.
I think you would be far better to create a single line text file each time
and then print it with (for example):
SHELL cat /home/charles/tilRcpt/dev/lp0
It's blindingly quick
charlesg ha scritto:
Hi,
I tried printing line-by-line directly to the raw device and got into awful
overlapping (? buffering) problems.
I think you would be far better to create a single line text file each time
and then print it with (for example):
SHELL cat /home/charles/tilRcpt/dev/lp0
Benoît Minisini ha scritto:
these are shell commands, cat and echo
cat shows the contents of a file and echo print a string in screen
we use redirection which is
to a device printer /dev/lp0 or lp1 or lp2 see what is your printer
To print a file you can write in shell or in gambas
Hi,
I can specify the language to use with:
System.Language = fr_FR
But how can I specify the directory containing the translations?
Also, where are those things documented? I only found the System.Language
info on the mailing-list.
John
You can't specify this directory.
The
Is there any chance to find out why I get the message:
Access forbidden at the following Sub? And of course to make it work?
PUBLIC SUB bEktiposi_Click()
DIM hPrinter AS Printer
DIM hFile AS File
hPrinter = OPEN dev/lp1 FOR OUTPUT
hPrinter.EndOfLine = gb.Windows
On Wednesday 23 September 2009 21:36:37 you wrote:
I have always created the project without the subversion option enabled.
The added the project to the svn repo.
after that, then you open the project with the gambas ide you can commit
and update using the gui. Always worked for me
Do
Yes.. I just check out the code and load the peoject.
I've had issues in the past where gambas would add the .gambas (hidden)
directory to svn. That creates a problem. So I just exclude that dir from
version control and that takes care of it
On Sep 24, 2009 6:10 PM, Benoît Minisini
Vassilis K ha scritto:
Is there any chance to find out why I get the message:
Access forbidden at the following Sub? And of course to make it work?
PUBLIC SUB bEktiposi_Click()
DIM hPrinter AS Printer
DIM hFile AS File
hPrinter = OPEN dev/lp1 FOR OUTPUT
15 matches
Mail list logo