summaryrefslogtreecommitdiff
path: root/fpcdocs/unixex/ex56.pp
blob: b5ae81563fad58d982f3b3ebce22600bb87bf4d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
program example56;

uses Unix;

{ Program to demonstrate the Shell function }

Var S : Longint;

begin
  Writeln ('Output of ls -l *.pp');
  S:=Shell ('ls -l *.pp');
  Writeln ('Command exited wwith status : ',S);
end.