[clug] IO redirection

Kim Holburn kim.holburn at gmail.com
Sun Sep 17 22:31:42 UTC 2017


> On 2017/Sep/18, at 12:11 AM, Bryan Kilgallin (iiNet) <kilgallin at iinet.net.au> wrote:
> 
>> exec Test.txt
> 
> That yielded the following error.
> {
> Test.txt: command not found
> fish: exec Test.txt
>           ^
> }

for exec to work, Test.txt has to be executable and must be full path or in the path.

chmod 755 ./Test.txt

exec ./Test.txt

exec is always the last command executed in a script.  It doesn't return to the script.

-- 
Kim Holburn
IT Network & Security Consultant
T: +61 2 61402408  M: +61 404072753
mailto:kim at holburn.net  aim://kimholburn
skype://kholburn - PGP Public Key on request 






More information about the linux mailing list