It's UWAweek 47

helpOSTS

This forum is provided to promote discussion amongst students enrolled in Open Source Tools and Scripting.

Please consider offering answers and suggestions to help other students! And if you fix a problem by following a suggestion here, it would be great if other interested students could see a short "Great, fixed it!"  followup message.

How do I ask a good question?
Displaying selected article
Showing 1 of 445 articles.
Currently 49 other people reading this forum.


 UWA week 15 (1st semester, week 6) ↓
SVG not supported

Login to reply

👍?
helpful
10:08am Mon 8th Apr, Michael W.

Hi, There is a little confusion here. For all Bash messages you need to use echo. The only question then is where the message is to be printed. echo "Fred here" will print to stdout (or /dev/stdout). That is the default destination, so you don't have to specify it. However, if you want it to be an error message, and for it to go to standard error , e.g. echo "Error: fred here" > /dev/stderr then you have to explicitly send it to /dev/stderr. Cheers MichaelW

The University of Western Australia

Computer Science and Software Engineering

CRICOS Code: 00126G
Written by [email protected]
Powered by history
Feedback always welcome - it makes our software better!
Last modified  8:08AM Aug 25 2024
Privacy policy