10-27-2014
> Does that make sense?
Mostly, until you get here:
>then if name is equal to name do nothing, but if name is != name do something
I am trying to let you know that name will never be anything else but name. Even if you change the content of variable $NAME, it will always be true, therefore, it does not make any logical sense (in the technical sense).
Now:
[ $NAME != $x ] That makes sense, $NAME can contain something different that $x, but $NAME would never contain something different to compare.
You need to create another variable containing another name you want to compare.
Hope it helps.
Last edited by Aia; 10-27-2014 at 11:05 PM..
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
hello ..
I am college student and a new guy to unix.
I have a simple question:
what does "unix" stand for ,or just a meaningless name ? (4 Replies)
Discussion started by: nanuo
4 Replies
2. UNIX for Dummies Questions & Answers
14 (2 Replies)
Discussion started by: zbweh5280
2 Replies
3. UNIX for Dummies Questions & Answers
hi I am vijay
how r the unix gurus?
I want to install unix for our sites.So pls tell me abt unix installation user guide & also all the unix commands.Pls help me.I am waiting for yr reply.
bye..........vijay :D (2 Replies)
Discussion started by: vi77_surat
2 Replies
4. Programming
HI Friends,
I wanted to start this thread inorder to keep all the Unix starters to easily find useful material through this thread...I request you all to provide with the URL address of any gud material you know...
thanks and regards... (2 Replies)
Discussion started by: rahul3894singh
2 Replies
5. UNIX for Dummies Questions & Answers
Any study material for begineers for UNIX please?? (2 Replies)
Discussion started by: niranjany
2 Replies
6. UNIX for Dummies Questions & Answers
Hi, I need some help with the follow questions :(. Any help would be great!
Answer with the necessary commands
1. In your login directory, make a directory called week4/revision
2. Without changing directories, make another directory week4_revision/data
3. Change to week4_revision/data... (2 Replies)
Discussion started by: Heyo
2 Replies
7. What is on Your Mind?
Hi,
I want to prepare and then appear for Unix admin certification. Please guide me for the study material and Exams that are required to be taken for UNIX certifcation.
Thanks in advance. (11 Replies)
Discussion started by: raman1605
11 Replies
8. Programming
Hi..
I am a new joinee to this foram.I need to submit a case study in UNIX .Please help me to submit the case study by giving your valuable ideas.It will be very helpful for me.
Topic: Unix File Management
A university wants to computerize its Library operations because of... (2 Replies)
Discussion started by: viji_jeya
2 Replies
9. UNIX for Dummies Questions & Answers
Hi ,
Can anyone suggest me any UNIX Study material and UNIX Certification specific for TELECOM-DOMAIN.
Best Regards,
Om Prakash. (14 Replies)
Discussion started by: omprakash1986
14 Replies
10. SCO
Hi all,
I hope you are fine,
I'd like study Os I tried a book like Silberschatz it's a good book but like
other books it talks about the concepts abstractly and that's due to it try
to encompass many concepts from many operating systems in GENERAL.
i am not too much comfortable from these... (20 Replies)
Discussion started by: Abdo_8008
20 Replies
LEARN ABOUT PHP
scsi_arq_status
scsi_arq_status(9S) Data Structures for Drivers scsi_arq_status(9S)
NAME
scsi_arq_status - SCSI auto request sense structure
SYNOPSIS
#include <sys/scsi/scsi.h>
INTERFACE LEVEL
Solaris DDI specific (Solaris DDI)
DESCRIPTION
When auto request sense has been enabled using scsi_ifsetcap(9F) and the "auto-rqsense" capability, the target driver must allocate a sta-
tus area in the SCSI packet structure for the auto request sense structure (see scsi_pkt(9S)). In the event of a check condition, the
transport layer automatically executes a request sense command. This check ensures that the request sense information does not get lost.
The auto request sense structure supplies the SCSI status of the original command, the transport information pertaining to the request
sense command, and the request sense data.
STRUCTURE MEMBERS
struct scsi_status sts_status; /* SCSI status */
struct scsi_status sts_rqpkt_status; /* SCSI status of
request sense cmd */
uchar_t sts_rqpkt_reason; /* reason completion */
uchar_t sts_rqpkt_resid; /* residue */
uint_t sts_rqpkt_state; /* state of command */
uint_t sts_rqpkt_statistics; /* statistics */
struct scsi_extended_sense sts_sensedata; /* actual sense data */
sts_status is the SCSI status of the original command. If the status indicates a check condition, the transport layer might have performed
an auto request sense command.
sts_rqpkt_status is the SCSI status of the request sense command. sts_rqpkt_reason is the completion reason of the request sense command.
If the reason is not CMD_CMPLT, then the request sense command did not complete normally.
sts_rqpkt_resid is the residual count of the data transfer and indicates the number of data bytes that have not been transferred. The auto
request sense command requests SENSE_LENGTH bytes.
sts_rqpkt_state has bit positions representing the five most important statuses that a SCSI command can go obtain.
sts_rqpkt_statistics maintains transport-related statistics of the request sense command.
sts_sensedata contains the actual sense data if the request sense command completed normally.
SEE ALSO
scsi_ifgetcap(9F), scsi_init_pkt(9F), scsi_extended_sense(9S), scsi_pkt(9S)
Writing Device Drivers
SunOS 5.10 30 Sep 1996 scsi_arq_status(9S)