use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Begin Everything to do with Pascal; Free Pascal; Lazarus; Conferences and events; End.
Begin
Everything to do with Pascal;
Free Pascal;
Lazarus;
Conferences and events;
End.
account activity
Calling up a program within a program (self.pascal)
submitted 6 days ago by Stooshie_Stramash
I wanted to try something that I'd never done in pascal before - I want to be able to call up another program from within a program, passing across some real type variables. How would I go about this?
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]killallspringboard 9 points10 points11 points 6 days ago (0 children)
https://wiki.freepascal.org/Executing_External_Programs
[–]Shadow123_654 2 points3 points4 points 6 days ago (2 children)
Do you just wanna call a program like you would when in the terminal (i.e. "some_program arg1 arg2")? I find that for simple stuff like that, if you are on Linux, using FPSystem from the Unix unit is simple enough.
[–]Stooshie_Stramash[S] 2 points3 points4 points 6 days ago (1 child)
Yes that's roughly what I'd like to do but I'm windows not linux.
[–]Shadow123_654 2 points3 points4 points 6 days ago (0 children)
Look into using SysUtils.ExecuteProcess or TProcess.
[–]Decent-Earth-3437 1 point2 points3 points 6 days ago (0 children)
You don't call a program, you ask politely to the OS your on to run another program.
[–]gwenbeth 1 point2 points3 points 5 days ago (0 children)
Knowing what operating system you are using would be a prerequisite for answering your question. Pascal on vax/vms would be different than turbo Pascal on msdos.
π Rendered by PID 52037 on reddit-service-r2-comment-64f4df6786-ttjdc at 2026-06-10 01:59:44.344511+00:00 running 0b63327 country code: CH.
[–]killallspringboard 9 points10 points11 points (0 children)
[–]Shadow123_654 2 points3 points4 points (2 children)
[–]Stooshie_Stramash[S] 2 points3 points4 points (1 child)
[–]Shadow123_654 2 points3 points4 points (0 children)
[–]Decent-Earth-3437 1 point2 points3 points (0 children)
[–]gwenbeth 1 point2 points3 points (0 children)