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" ?
View 2 Replies
ADVERTISEMENT
Apr 4, 2011
I am the new child of the linux world. What is the difference and working functions between kernel and shell..
View 5 Replies
View Related
Mar 19, 2011
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?
View 2 Replies
View Related
Apr 5, 2010
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.
Static Lib:
#include<stdio.h>
void A(char *msg)
{
printf("
[code]....
View 4 Replies
View Related
Oct 6, 2010
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.
View 1 Replies
View Related
Sep 13, 2010
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:
Code:
$ tail -n 3 /etc/bashrc
echotm () {
echo "[`date`] $@"
}
[code]....
View 11 Replies
View Related
Mar 16, 2011
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.
View 4 Replies
View Related
Jul 30, 2011
I have seen the following command:
$ kill %1
What is the usage of this statement?
View 2 Replies
View Related
Mar 11, 2010
Is it possible to define functions within other functions in C++? I know it is the case in other languages.
View 2 Replies
View Related
Feb 27, 2010
I used the following command
Code:
file /usr/bin/mawk
Output is
[code]...
View 4 Replies
View Related
May 28, 2011
Kernel 2.6.21.5, Slackware 12.0top: procps 3.2.7Hi:Running top, I read, in the summary area,
Code:
root@darkstar:~# top
........
[code]....
View 3 Replies
View Related
Feb 17, 2011
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?
View 1 Replies
View Related
Feb 25, 2011
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??
View 2 Replies
View Related
Aug 24, 2010
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?
View 2 Replies
View Related
Jul 12, 2011
What is a pipe? and why a file is a named pipe? I am just learning linux.
View 2 Replies
View Related
Jul 21, 2011
Where can I find debug symbols of GNU packages, for example for coreutils etc.?
View 3 Replies
View Related
Nov 9, 2010
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?
View 1 Replies
View Related
Jul 9, 2010
For PE executable, I can list the imported symbols using
dumpbin /imports FILE.EXE
or using the depends utility which is GUI application.
`nm ELF-binary' just returns "no symbols".
View 1 Replies
View Related
Dec 7, 2010
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.
View 6 Replies
View Related
May 12, 2010
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.
View 3 Replies
View Related
Aug 4, 2009
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.
View 3 Replies
View Related
May 7, 2010
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.
View 2 Replies
View Related
May 16, 2011
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:
[code]....
View 7 Replies
View Related
Apr 30, 2010
What are the functions of the tar utility?
View 9 Replies
View Related
Dec 24, 2009
Code:
#!/bin/bash
#Functions
CallFunct() {
functio()
[code]....
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.
View 3 Replies
View Related
Mar 23, 2010
I was trying to write a script to change the signature of the all the methods in a set of scripts.. here is a sample of the same :
old signature :
methodname()
{
method-body
}
New signature:
function methodname
{
method-body
}
That is i need to insert "function" keyword in front of the methodname and remove the () after the methodname.
View 4 Replies
View Related
Jul 1, 2011
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.
View 1 Replies
View Related
Jan 25, 2011
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.
View 1 Replies
View Related
Oct 20, 2010
Is there any command that can check the referenced functions in a executable?
View 1 Replies
View Related
Mar 4, 2010
how to use inode hook functions(inode_alloc_security and inode_free_security)?
View 1 Replies
View Related