....can please any one explain me whats the significance of using "\" and the "&&"
in the command section of the makefile....does something special happens internally when execution starts
It's not just cosmetic however. make treats each command line as if it were executed in its own shell. Thus
will not work in make as you would expect. But
will work, as both commands are on a single line, which can be split up by using a backslash, like
(Note that you still need the semicolon at the end of the line to be continued, as well as the backslash)
As noted above, the backslash just lets you wrap a long command line.
You have to be sure that the backslash is the final character in that line -- even a single blank space will screw it up -- that set of commands will then be perceived as two separate lines.
The && operator is used to execute additional commands after other commands, but only if the earlier one(s) are successful. The || (double-pipe) operator is the opposite -- the following only executes if the first one fails.
Example:
If thing1 works, then thing2 will execute. If thing2 works, thing3 will execute, and so on. But if any one of them fails, that's the end of the road.
In this case, thing1 will be executed. If it works, that's the end of the road. If it fails, then otherthing will be executed.
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
Basically, the prompt is make a makefile with various sub makefiles in their respective subdirectories. All code... (1 Reply)
Hi, I'm trying to run the module load command in a Makefile and i'm getting the following error:
make: module: command not found
Why is this? Is there any way to run this command in a Makefile?
NOTE: command - module load msjava/sunjdk/1.5.0 works fine outside of the Makefile (2 Replies)
In a solaris 8 machine the native binaries
are mainly kept under /bin and /usr/bin
but some binaries i found in /usr/xpg4/bin
please can anyone tell me in a little detail what is the reason to keep the binaries in different locations
i mean /bin /usr/bin /usr/xpg4/bin
... (1 Reply)
$ A=/t1/bin/f410pdb oIFS=$IFS IFS=/
$ set -- $A
$ IFS=$oIFS
$ echo $2
t1
$ echo $3
bin
$ echo $4
f410pdb
can any one please explain me what is done with IFS and how it is working internally ...i am interested to know in depth (2 Replies)
from aix server, is it a way to extract data from windows LDAP. i will need to extract only firstname, lastname and login either xml or csv format ?
i can use ldifde command to extract above information, but i have to do it from windows server. (1 Reply)
what is the real use of xargs command ..?
ls -tr |xargs -I{} rm -f {}
....can any one tell me what is the significance of {} curly brackets in this command (1 Reply)
hello ,
i want to know about a situation
suppose i want to ftp to a system
i try to login through root login
root password ...will it fail
i am getting ftp:500 command not recognized in a similar situation as soon as i am entering my email... (0 Replies)
i am newbie my querry is
if i am having a gcc compiler which has been a native build with a particular version of binutilities..then when i will use this compiler to build other packages ..then in the linking stage which linker it will use if i do not set my path.
...will it uses by default... (0 Replies)
Hi all
I have this output in a variable called ...yes $OUTPUT :-) original...huh
these are tablespaces in an Oracle db
how do I get this into another variable in two columns
so I can do a check on the numbers (space left)
SYSTEM 290; USERS 19; UNDOTBS1 1863; DATA 5982; SYSTEM 290; USERS... (7 Replies)
hi all,
To summerize disk usage in human readable format we have "du -h" in linux,which gives the
disk usage in MBs.
do we have something similar in HP-UX ?
thanks,
amit (4 Replies)