Any idea why
gives invalid option and how can I make it print without error
---------- Post updated at 07:02 PM ---------- Previous update was at 06:58 PM ----------
Quote:
Originally Posted by Scrutinizer
Indeed. let is an arithmetic evaluation. A synonymous notation would be (ksh/bash):
And you can also do this:
This seems to work. I rather set vbLevel to none, medium, ... and do as below. or is it better using
This works too ---------- Post updated at 07:10 PM ---------- Previous update was at 07:02 PM ----------
I want to stick with the one below. Would this be ok? ---------- Post updated at 07:23 PM ---------- Previous update was at 07:10 PM ----------
I get the user to supply none, low, medium and high from a user option.
Example
My code then uses
Thus I replace vbLevel by the user string, which is either none, low, medium or high which then gets associated with the number and then I can do
---------- Post updated at 07:31 PM ---------- Previous update was at 07:23 PM ----------
I am trying to create a function to return me the verbosity level, so I can call it
as follows
String s = "normal";
Verbosity log_level;
log_level = get_log_level(s);
I started a version in the last function but I am having trouble getting it to work.
#ifndef __VERBOSE_HH__... (1 Reply)
Hi,
I would like to use find to search for multiple types. For example search for symlink and regular file but not directories, sockets etc.... Something like:
find . -type l,f -name "stuff"
But of course it does not work.
Is there any way to avoid an if statement and to do it faster?
... (0 Replies)
If I want to declare an array of structures in C and have the number of items in that array to correspond to the items of an enumeration, is there a way to access the maximum value in the enumeration when declaring the array?
For instance:
typedef struct
{
various fields....
} ... (3 Replies)
Hi,
I am trying to launch an ogg movie from a pdf file which has been produced with pdflatex and
\movie
{\centerline{\includegraphics
{grafiques_xerrades/un_manolo_amb_camera.pdf}}}
{hlims_xerrades/XocCumuls.ogg}
The switch "externalviewer" makes kpdf launch the default... (5 Replies)
What is the difference between:
cd /tmp
tar -cf - *.txt |gzip > tmp_txt.tar.gz
and
cd /tmp
mknod pipe p
gzip < pipe > /tmp/tmp_txt1.tar.gz &
tar -cf pipe *.txt
Apart from the fact that we have to create the pipe file manually, is there any difference in the performance of the two?... (5 Replies)
I have a file of type .for extension .In a guui based unix environment like solaris if I double click on that file a specific program designed by me has to run which takes this file as the parameter and exceutes the program.
Can anyone help me? (8 Replies)
can anyone explain me difference between tar and ufsdump commands.............and also i wd like to know the difference between incremental and differential backup.........
thx in advance (1 Reply)
I installed Redhat into my system. The reason? This was the version my friend was running and he told me about this one, so I downloaded and installed it. Simple enough :D
But as I am searching the net, I am coming across many other forms of linux made by other companies. Redhat seems to be... (2 Replies)
dear sir ,
i would like to ask about sun solaries servers generations ?
i hear about sparc and ultra .
i want to know the versions , and is there other servers types ??
Thank (3 Replies)