Ubuntu 20.04 - Console only script?

Linux specific forum
C1P8
New User
New User
Posts: 2
Joined: Sat Jul 23, 2022 11:14 pm

Ubuntu 20.04 - Console only script?

Post by C1P8 »

Hello,
I'd like to compile a PB script on Ubuntu 20.04 server.
No graphic interface. Console only.
Is it possible?
I wasn't able to find an answer.
Thanks in advance for any help!
vwidmer
Enthusiast
Enthusiast
Posts: 282
Joined: Mon Jan 20, 2014 6:32 pm

Re: Ubuntu 20.04 - Console only script?

Post by vwidmer »

In the Compiler menu -> compiler options -> Executable Format: Console
WARNING: I dont know what I am doing! I just put stuff here and there and sometimes like magic it works. So please improve on my code and post your changes so I can learn more. TIA
C1P8
New User
New User
Posts: 2
Joined: Sat Jul 23, 2022 11:14 pm

Re: Ubuntu 20.04 - Console only script?

Post by C1P8 »

Thanks vwidmer, but the problem is that I don't have a GUI.
I work with console SSH only. Only command line available.
My challenge is exactly to be able to write scripts to be used in a server console.
User avatar
mk-soft
Always Here
Always Here
Posts: 5409
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: Ubuntu 20.04 - Console only script?

Post by mk-soft »

PB is not a script language, but a real compiler. Therefore Purebasic must be installed on the server. Then you can compile the programme with the command line compiler. See help.

BUT THE COMPILER MUST NOT BE INSTALLED AS PUBLIC ON THE SERVER. SEE THE LICENCE AGREEMENT.
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
User avatar
useful
Enthusiast
Enthusiast
Posts: 369
Joined: Fri Jul 19, 2013 7:36 am

Re: Ubuntu 20.04 - Console only script?

Post by useful »

Dawn will come inevitably.
Bitblazer
Enthusiast
Enthusiast
Posts: 736
Joined: Mon Apr 10, 2017 6:17 pm
Location: Germany
Contact:

Re: Ubuntu 20.04 - Console only script?

Post by Bitblazer »

Or create the binary files on your regular development machine by using a virtual machine and just copy the generated console binary to the target machine. You just have to watch the external references :)

That way, i work with my convenient IDE environment all the time and just ftp the resulting binary to some remote host.

I use Oracle VirtualBox and distrowatch for that, which works great for linux. I have created software for over a 20 different linux systems that way on my windows computer.
Post Reply