Visit Our UNIX and Linux User Community


Smqueue

 
Thread Tools Search this Thread
Homework and Emergencies Homework & Coursework Questions Smqueue
# 1  
Old 09-23-2009
Smqueue

Use and complete the template provided. If you don't, your post may be deleted!

1. The problem statement, all variables and given/known data:

what these lines of coding are doing?


2. Relevant commands, code, scripts, algorithms:

[ -z "$SMQUEUE" ] && SMQUEUE="$QUEUE"
[ -z "$SMQUEUE" ] && SMQUEUE=1h

3. The attempts at a solution (include all code and scripts):

I know that it is doing something like setting the system mail queue to 1 hour? but i do not understand what the -z and rest of it is doing?

4. School (University) and Course Number:

Bond 131532
# 2  
Old 09-23-2009
The -z is testing to see if the string is empty.

If the test (square braces) fails then the assignment part after && doesn't execute.

Previous Thread | Next Thread
Test Your Knowledge in Computers #106
Difficulty: Easy
A kernel is at the heart of the Linux OS; and this kernel acts as an interface between the user and underlying hardware.
True or False?

Featured Tech Videos