Red Hat Linux Command Paths

This sample unixcmds_redhat_linux_macros.cfg file specifies command paths for common programs you are likely to reference elsewhere in your PIKT configuration.  The "local defs" section at the very bottom of this file is where you may specify program-and-command-option combinations, set local program paths, and customize your command macros in ways suitable for your particular situation.

With this setup, if you reference the =egrep and =awk macros in a script, for example,

	filter "=egrep '^[A-Z]' | =awk 'NF==7'"

the piktc preprocessor would translate this on a Red Hat Linux system as

	filter "/bin/egrep '^[A-Z]' | /bin/awk 'NF==7'"

Contrast this with unixcmds_suse_linux_macros.cfg.

You might use the sample mkunixcmds script to generate this file.

The Red Hat Linux command paths macro specification file follows.  (Much material has been omitted for brevity's sake.)

///////////////////////////////////////////////////////////////////////////////
//
// unixcmds_redhat_linux_macros.cfg -- Red Hat Linux command and program paths
//
// this file is based on a red hat fedora core 5 system
// 
///////////////////////////////////////////////////////////////////////////////
 
#if redhat
 
///////////////////////////////////////////////////////////////////////////////
 
#  if redhatfc5
 
411toppm /usr/bin/411toppm
a2p /usr/bin/a2p
a2ping /usr/bin/a2ping
a2ps /usr/bin/a2ps
ab /usr/bin/ab
ac /usr/bin/ac
accept /usr/sbin/accept
accton /sbin/accton
aclocal /usr/bin/aclocal
aclocal-1.4 /usr/bin/aclocal-1.4
[...]
zipgrep /usr/bin/zipgrep
zipinfo /usr/bin/zipinfo
zipnote /usr/bin/zipnote
zipsplit /usr/bin/zipsplit
zless /usr/bin/zless
zmore /usr/bin/zmore
znew /usr/bin/znew
zonetab2pot.py /usr/bin/zonetab2pot.py
zsh /bin/zsh
zsoelim /usr/bin/zsoelim
 
#  endif  // redhatfc5
 
///////////////////////////////////////////////////////////////////////////////
 
// local defs
 
dfi             =df -i -t ext3
dfk             =df -k
dfl             =df -k -t ext3
dusk            =du -sk
lsC             =ls -C
ll              =ls -l
lld             =ls -ld
lp              =lpr -P
psall           =ps aux
mailx           =mail
nawk            =awk
mailq           /usr/bin/mailq
rsh             =ssh
 
///////////////////////////////////////////////////////////////////////////////
 
#endif  // redhat
 
///////////////////////////////////////////////////////////////////////////////

For more examples, see Samples.

 
Home | FAQ | News | Intro | Samples | Tutorial | Reference | Software
Developer's Notes | Licensing | Authors | Pikt-Users | Pikt-Workers | Related Projects | Site Index | Privacy Policy | Contact Us
Page best viewed at 1024x768 or greater.   Page last updated 2019-01-12.   This site is PIKT® powered.
Copyright © 1998-2019 Robert Osterlund. All rights reserved.
Home FAQ News Intro Samples Tutorial Reference Software
PIKT Logo
PIKT Page Title
View sample
system files
disappear
Pikt script