Browse code

printfs redirected to /dev/stderr

Jiri Kuthan authored on 22/08/2003 03:29:23
Showing 1 changed files
... ...
@@ -162,7 +162,7 @@ check_uri() {
162 162
 prompt_pw() {
163 163
 	if [ -z "$PW" ] ; then
164 164
 		savetty=`stty -g`
165
-		printf "MySql password: "
165
+		printf "MySql password: " > /dev/stderr
166 166
 		stty -echo
167 167
     	read PW
168 168
 		stty $savetty
... ...
@@ -297,7 +297,7 @@ sql_query() {
297 297
 	# if password not yet queried, query it now
298 298
 	if [ -z "$PW" ] ; then
299 299
 		savetty=`stty -g`
300
-		printf "MySql password: "
300
+		printf "MySql password: " > /dev/stderr
301 301
 		stty -echo
302 302
     	read PW >&2
303 303
 		stty $savetty
... ...
@@ -333,7 +333,7 @@ usrloc() {
333 333
 			if [ $# -eq 2 ] ; then
334 334
 				fifo_cmd ul_show_contact $UL_TABLE $2
335 335
 			elif [ $# -eq 1 ] ; then
336
-				printf "Dumping all contacts may take long: are you sure you want to proceed? [Y|N] "
336
+				printf "Dumping all contacts may take long: are you sure you want to proceed? [Y|N] " > /dev/stderr
337 337
 				read answer
338 338
 				if [ "$answer" = "y" -o "$answer" = "Y" ] ; then
339 339
 					fifo_cmd ul_dump