How to not diplay shell script lines running
So I created a small bash script to consolidate some files across a couple different unix machines, what they are is irrelevant. Script works fine.
I have a batch file on a PC that remotely executes this script, again, no hiccups in the process. However in batch scripting, by running the script in null mode I can have the script only display specific lines of operation by ending that line of code with ">&2"
Is there a way in bash scripting to do the same? The consolidation script, runs through the multiple machines getting files and bringing them to a single location... but it outputs every single operation to the terminal.
I'd like it to ONLY display the line in the script that prompts for a an SFTP connection password, and that's it...
Possible?
Last edited by sectshun8; January 24th, 2013 at 09:56 AM.
Ubuntu 12.04 for personal use
Solaris 9, 10 and Red Hat Ent 5 @ work
Bookmarks