Posts Tagged ‘source’


July 7th, 2009

Table of Contents


source – read and execute a file of filer commands


source [ -v ] filename


The source command reads and executes a file of filer commands, line by line. Errors do not cause termination; upon error the next line in the file is read and executed. The filename argument must contain the fully qualified pathname to the file because there is no concept of a current working directory in ONTAP.


Enables verbose mode.


Since execution does not halt on error, do not use the source command to develop scripts in which any line of the script depends on successful execution of the previous line.

Table of Contents

Copyright © 1994-2008 NetApp, Inc. Legal Information

7-mode Manual Pages , , , ,


February 7th, 2009

source <filename>

This will read and process the contents of whatever file you point to it. So if the filename is full of commands (for arguments sake /etc/rc), running source on it (“source /etc/rc”) would run all the commands.

If you have a series of commands that need to be run regularly, this would be a very efficient way of scripting this, just one ssh command could execute a whole series of commands.

Undocumented Commands , , ,

This site is not affiliated or sponsored in anyway by NetApp or any other company mentioned within.