in reply to Re: How to execute alias commands (source your profile)
in thread How to execute alias commands
Shell Script:if($input eq "-c"){ print "Enter Command: "; my $cmd = <STDIN>; chomp($cmd); print $fh $cmd; print $fh "\n\t#### START COMMAND OUTPUT ####\n"; print `$cmd`; foreach(`$cmd`){ print $fh "#".$_; } print $fh "\t#### END COMMAND OUTPUT ####\n"; next; }
Any suggestions?#!/bin/bash perl /path/to/script/script.pl $1 $2 $3 $4
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: How to execute alias commands (source your profile)
by nanophd (Novice) on Jan 14, 2014 at 17:15 UTC |