Page 1 of 1
Ubuntu 20.04 - Console only script?
Posted: Sat Jul 23, 2022 11:22 pm
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!
Re: Ubuntu 20.04 - Console only script?
Posted: Sat Jul 23, 2022 11:39 pm
by vwidmer
In the Compiler menu -> compiler options -> Executable Format: Console
Re: Ubuntu 20.04 - Console only script?
Posted: Sun Jul 24, 2022 12:01 am
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.
Re: Ubuntu 20.04 - Console only script?
Posted: Sun Jul 24, 2022 12:56 am
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.
Re: Ubuntu 20.04 - Console only script?
Posted: Sun Jul 24, 2022 4:35 am
by useful
Re: Ubuntu 20.04 - Console only script?
Posted: Sun Jul 24, 2022 6:21 am
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.