Cool, I made the mistake of compiling a gui version that "just worked" switching between versions (but that was using RHL v9).
I then made the assumption terminal (console) apps would just work without requiring any external library's (it was just one line printN("hello world") )
I have a few ...
Search found 21 matches
- Fri Oct 25, 2024 7:44 pm
- Forum: Linux
- Topic: Linux console only app
- Replies: 5
- Views: 3699
- Fri Oct 25, 2024 8:38 am
- Forum: Linux
- Topic: Linux console only app
- Replies: 5
- Views: 3699
Re: Linux console only app
This is probably my bad, I compiled on Ubuntu 20.04 and ran on rocky Linux 8.5 via putty.
I suspect it's a versioning issue.
Thanks for the reply!
I suspect it's a versioning issue.
Thanks for the reply!
- Fri Oct 25, 2024 3:18 am
- Forum: Linux
- Topic: Linux console only app
- Replies: 5
- Views: 3699
Linux console only app
Is there a way to compile with out needing GLIBC_2.34 so the console apps will run purely in terminal without needing the GUI present, you know like running the app in init 3
- Sun Jan 15, 2023 4:12 am
- Forum: Mac OSX
- Topic: How to Hardlink directories (in mojave)
- Replies: 3
- Views: 782
Re: How to Hardlink directories (in mojave)
Perfect, That works.
I did discover that APFS formatted drives just don't support Hardlinking directories but Mac OS Extended drives seem to work fine I've (rather poorly) added unlink for the procedure i wanted.
Procedure hlink(Source$,Target$) ; pass blank target to unlink
Protected r1, *arg1 ...
I did discover that APFS formatted drives just don't support Hardlinking directories but Mac OS Extended drives seem to work fine I've (rather poorly) added unlink for the procedure i wanted.
Procedure hlink(Source$,Target$) ; pass blank target to unlink
Protected r1, *arg1 ...
- Sat Jan 14, 2023 4:36 am
- Forum: Mac OSX
- Topic: How to Hardlink directories (in mojave)
- Replies: 3
- Views: 782
Re: How to Hardlink directories (in mojave)
Ok I've just decided to just hardlink each file individually by calling the terminal ln command, this will get me want i need without needing to elevate privileges.
- Fri Jan 13, 2023 8:10 am
- Forum: Mac OSX
- Topic: How to Hardlink directories (in mojave)
- Replies: 3
- Views: 782
How to Hardlink directories (in mojave)
So i found this on-line is there an easy way to do this in PB, the terminal command "ln" won't do it as you can only symbolic link directories
#include <unistd.h>
#include <stdio.h>
int main(int argc, char* argv[]) {
if (argc != 3) {
fprintf(stderr,"Use: hlink <src_dir> <target_dir>\n ...
#include <unistd.h>
#include <stdio.h>
int main(int argc, char* argv[]) {
if (argc != 3) {
fprintf(stderr,"Use: hlink <src_dir> <target_dir>\n ...
- Fri Jul 27, 2012 3:21 am
- Forum: Coding Questions
- Topic: Find file
- Replies: 7
- Views: 1741
Re: Find file
its not pretty but it works:
Procedure FindPath(Directory$,File$,*mem,Poz)
If ExamineDirectory(Poz, Directory$, "*.*") And PeekS(*mem)=""
While NextDirectoryEntry(Poz)
If DirectoryEntryType(Poz)=#PB_DirectoryEntry_File
If UCase(DirectoryEntryName(Poz))=UCase(file$)
PokeS(*mem,Left ...
Procedure FindPath(Directory$,File$,*mem,Poz)
If ExamineDirectory(Poz, Directory$, "*.*") And PeekS(*mem)=""
While NextDirectoryEntry(Poz)
If DirectoryEntryType(Poz)=#PB_DirectoryEntry_File
If UCase(DirectoryEntryName(Poz))=UCase(file$)
PokeS(*mem,Left ...
- Sun Mar 11, 2012 11:07 pm
- Forum: Mac OSX
- Topic: Using cp command via RunProgram
- Replies: 3
- Views: 1819
Re: Using cp command via RunProgram
I can't believeI it! was using chr(32)! so I had been adding a space instead of speachmarks
Thanks spacebuddy, been using ascii for over 20 years since my ZX and I made such a simple mistake

Thanks spacebuddy, been using ascii for over 20 years since my ZX and I made such a simple mistake
- Sat Mar 10, 2012 2:24 am
- Forum: Mac OSX
- Topic: Using cp command via RunProgram
- Replies: 3
- Views: 1819
Re: Using cp command via RunProgram
Hmmmm, I'm sure I tried that first, coming from a windows enviroment where you need to do that to encapsulate spaces, would i still need to have the "/ " in there as well?
Ie "users\images\desktop\this/ folder"
Ps I'm programming on a work computer as i don't own a Mac myself so cant test it till ...
Ie "users\images\desktop\this/ folder"
Ps I'm programming on a work computer as i don't own a Mac myself so cant test it till ...
- Thu Mar 08, 2012 11:09 pm
- Forum: Mac OSX
- Topic: Using cp command via RunProgram
- Replies: 3
- Views: 1819
Using cp command via RunProgram
I had a quick look but couldn't find a suitable answer on the forums...
When ever I run the cp command via runprogram using the following code it runs correctly, but only if i dont have any spaces in what i'm copying:
from$=OpenFileRequester("Select file","","",1)
too$=PathRequester("choose dest ...
When ever I run the cp command via runprogram using the following code it runs correctly, but only if i dont have any spaces in what i'm copying:
from$=OpenFileRequester("Select file","","",1)
too$=PathRequester("choose dest ...
- Tue Jun 01, 2010 1:37 am
- Forum: Coding Questions
- Topic: Cracking methods and how to stop them
- Replies: 79
- Views: 47744
Re: Cracking methods and how to stop them
Admittedly you are right I often don't..... Sometime i just read the first few, decide what i think is going on and reply.utopiomania wrote: As I said, you just don't bother reading and understanding previous posts before you jump in, do you?
- Mon May 31, 2010 10:47 pm
- Forum: Coding Questions
- Topic: Cracking methods and how to stop them
- Replies: 79
- Views: 47744
Re: Cracking methods and how to stop them
just out of curiosity name one program that cannot be cracked, I would bet with in less than a couple of minutes I could find a cracked version someware on the net. may be a revision down from the latest, but often you'll find a lot of the "quick" releases are often just to stop the crackers patched ...
- Mon May 31, 2010 3:37 am
- Forum: Coding Questions
- Topic: Cracking methods and how to stop them
- Replies: 79
- Views: 47744
Re: Cracking methods and how to stop them
This is so funny, I've enjoyed reading it :lol:
anyway cant think of any software that is uncrakable ?!?
And as written earlier on in this thread fred seems to have got it right. Purebasic was the first program I ever purchased, got it free as a trial on a computer mag, used it, loved it bought it ...
anyway cant think of any software that is uncrakable ?!?
And as written earlier on in this thread fred seems to have got it right. Purebasic was the first program I ever purchased, got it free as a trial on a computer mag, used it, loved it bought it ...
- Mon Apr 19, 2010 12:22 am
- Forum: Off Topic
- Topic: Awesome e-book website
- Replies: 2
- Views: 897
Awesome e-book website
Now, I don't know if this is legit or not but if it is its an awesome site for It and programming resources (e-books), sure nothing specific to PB but some really handy stuff none the less any way its here: REMOVED LINK SORRY Dont know hot to remove thread :?
Oh yeah I'm shearing this here because ...
Oh yeah I'm shearing this here because ...
- Mon Apr 12, 2010 10:01 am
- Forum: Coding Questions
- Topic: ReceiveHTTPFile() with userID and password, possible?
- Replies: 6
- Views: 1652
Re: ReceiveHTTPFile() with userID and password, possible?
I would say no, not the way you doing it according to this snippet I found on the interweb:
Of the predefined schemes listed (http, ftp, news, nntp, telnet, gopher
wais, mailto, file, prospero), only ftp: and telnet: URLs use the login
form, which allows for a password. http: uses only hostport.
So ...
Of the predefined schemes listed (http, ftp, news, nntp, telnet, gopher
wais, mailto, file, prospero), only ftp: and telnet: URLs use the login
form, which allows for a password. http: uses only hostport.
So ...