2001-10-15 14:28:18 +00:00
|
|
|
#!/bin/bash
|
|
|
|
# bashandperl.sh
|
|
|
|
|
2008-11-23 22:43:47 +00:00
|
|
|
echo "Greetings from the Bash part of the script, $0."
|
2001-10-15 14:28:18 +00:00
|
|
|
# More Bash commands may follow here.
|
|
|
|
|
2008-11-23 22:43:47 +00:00
|
|
|
exit
|
2001-10-15 14:28:18 +00:00
|
|
|
# End of Bash part of the script.
|
|
|
|
|
|
|
|
# =======================================================
|
|
|
|
|
|
|
|
#!/usr/bin/perl
|
2008-07-20 23:16:47 +00:00
|
|
|
# This part of the script must be invoked with
|
|
|
|
# perl -x bashandperl.sh
|
2001-10-15 14:28:18 +00:00
|
|
|
|
2008-11-23 22:43:47 +00:00
|
|
|
print "Greetings from the Perl part of the script, $0.\n";
|
|
|
|
# Perl doesn't seem to like "echo" ...
|
2001-10-15 14:28:18 +00:00
|
|
|
# More Perl commands may follow here.
|
|
|
|
|
|
|
|
# End of Perl part of the script.
|