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
>
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"
wrote:
> O
> 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 m
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 you
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
>
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
> 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 dire
> 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 sh
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
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
see the manual
man lpr
man pr
On Thu, Sep 24, 2009 at 3:18 PM, Vassilis K 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 !!
>
> ---
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 BlackBerry® Develope
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 gr
It is a typogriphic error.
I wrote it as "/dev/lp1"
--
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take Bl
On Thu, Sep 24, 2009 at 2:12 PM, Vassilis K wrote:
> 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
You forgot the slash before dev/lp1 or is that a typo?
So
hPrinter = OPEN "dev/lp1" FOR OUTPUT
Gets
hPrinter = OPEN "/dev/lp1" FOR OUTPUT
Regards,
Ron_2nd.
> Thank you all for your help.
>
> I have tried the following printing SUB:
>
> PUBLIC SUB bEktiposi_Click()
> DIM hPrinter AS Pri
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 hP
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 cont
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
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.
On Thu, Sep 24, 2009 at 10:41 AM, D
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 gamb
21 matches
Mail list logo