General :: Meaning And Functions Of Shell Symbols?
Mar 16, 2011
In shell scripting, what do or what does this symbol do or mean ? "."(octet), ";" (semicolon)? Would really like to know? Cause I saw a written script if [ -f /etc/file ];then. . /etc/file. Wondering, the "." is meant to be source, so is "." the same thing as "source" ?
None of my daemon scripts work now, and the startup process displayed errors. Should I reinstall the OS and start from scratch, or is there a way to recover these files? Is there a way to rebuild the files I deleted?
By issuing the 'nm' command on shared library (internally using one static library), the functions exposed by static library is also being listed, Which allows to use internal functions which is of course not intended. I have one static library having A(), B() and C() functions. Creating one shared library which has function XYS() that is using A() and B() functions from Static library. While doing 'nm' on shared library, all the static library function are being listed.
how come I can create a shell script file with two functions, I can execute the file, but when running declare -f, the functions are not on memory, and when invoking the function bash returns invalid. In the other hand, I can copy & paste the two functions at the end of my /etc/bashrc file.... then I can called the function by name.... and the commands within that function run on my session. here is a print of all my bash packets:
[Code]....
Does Fedora has restrictions on shell scripting? I haven't touch bash in seven years, so if things have change on it I'm behind on it, and sorry for my ignorance.
I wonder if there is anyway to make a user-defined bash shell function global, meaning the function can be use in any bash shell scripts, interactively or not. This is what I attempted:
I can't remember what "ISO" means. I've been busy with other projects, and I forget what release of Ubuntu I'm using. The computer I use the most is running Windoze 7, and I have Ubuntu running on two other machines but use them infrequently.
I've been messing with a curses-based disk check tool in Linux called VDT (visual disk test). It puts out a nice little chart on the screen as it's going, but I have no idea what each unit of output on the chart means. I've read the man page several times, but there doesn't seem to be any mention of the visual output.
For instance, right now I have a chart that looks like this during a read test. What do the o's and the Z mean?
I've several questions to ask: Why do some files have black arrows pointed outward in my file system? Why are some files in compressed form, e.g. initrd.img?? How are such files used by the system??
I am trying to see if a module that i loaded on Redhat succeeds.The module is from intel called vtune_drv-x32_64-2.6.18-194.el5smp.ko.When I run the script during the installation process, it shows that it is successful.Is the "0" at the end of line meaning that the module is not successfully loaded?
I'm using openSUSE 11.3. In the Yast2's module: Software Management, in the search tab, there is a column called: "Installed (Available)", It usually shows the current installed version of the package, but sometimes its blue, red or most of the times black. What does the color mean?
When I try to open text file with mouse pad or kate write all I see is PK and in small letters HF over TF_. I have no idea how this happened. How do I get my text document back? Using XFCE4.6.1, mousepad and kate write for my journal. Properties says its a zip archive but I didn't do that. Anyway tried to unzip it and got:
Code: PowerJustice may be a plain executable, not an archive unzip: cannot find zipfile directory in one of PowerJustice or PowerJustice.zip, and cannot find PowerJustice.ZIP, period.
I've been wondering about this for a long time but never thought to ask: I do a lot of scientific work so there are many times it would be really handy to be able to type mathematical symbols or Greek letters which, for the most part, aren't part of the ASCII character set. Like "∞ ρ σ τ ω ∑ ... √ ∫ ≤ ≥ " and so on. Is there a keyboard layout (for Linux) that maps simple key combinations to these kinds of characters? (Assuming all the encoding and font issues are worked out properly) I know I could create one myself but it'd be a lot easier if someone's already done the work, or at least if there's a partial solution I could modify.
I am trying to delete these symbols "[ ]" from a file but it says string not found. I tried: %s/[//g while editing the file not working also tried sed -e '/[/d' and sed '/]/d' still no job.
as many others I don't need CapsLock. I want to reassign it such that it has the function of AltGr. I use Kubuntu 9.10 but I think there must be a solution which is distribution independent.
I already tried to use setxkbmap or xmodmap. Using xmodmap at least I managed that CapsLock to behaves like Del by following this description.
But I could not achieve assigning the AltGr behavior to CapsLock.
I'm on Ubuntu 11.04. I have read around about how to use curl to download a list of URLs from a text file, and everyone says to use Code:curl -K URLlist.txt. This is what the curl man page says as well. However, for even a simple file with one URL, this command outputs a bunch of weird symbols for me instead of downloading the file.For example, I have a text file "test.txt" with one line in the following format:
Code: url = "http://www.example.com/image.jpg" I use the curl command to download this file:
When I try to run the current code, it stops on the bracket after functio() in CallFunct(). The only way I could get this to run was by removing CallFunct and just calling functio.
In my code I want to have two different functions to be executed simultaneously (in parallel) in a single processor system. I tried to use pthreads but they happened to be executed one after another. I have heard about fork, some saying that its no longer recommended since its functions can be achieved by pthreads.
Quote: logcountfunction() { awk ' { # when executing the script pass the logfile as parameter on the command prompt with the name of the file #export file_name= "&1"
[Code]....
my problem is that when i execute this script only the first two functions are being called.once the DBcounttry_finalnofunc() is done ,the script exits.The rest of the functions are not being called.