General :: Script Has 5 Functions But Exits Only After 2nd Function?

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


ADVERTISEMENT

Programming :: SDL TTF_Render.... Functions Not Work Under Thread Function?

Sep 6, 2010

I'm making a programm under OpenSuse 11.1I'm using SDL and ofcourse SDL_TTF.when i render with the SDL's TTF function under main(), i have no problems, but when i render under thread i have segmentation fault.There is not exist any typing or any competition (i'm using semaphores) but even if i try to render on a local SDL_Surface i'm having the Segmentation fault...

View 2 Replies View Related

General :: Deleted The /etc/rc.d/functions Folder And Functions.d Script And Turned Arch Machine Into A Brick?

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

General :: CentOS 5.4 - Bash Script Exits SU Or SSH Session

Apr 23, 2010

I am using CentOS 5.4. I created a bash script that does some checking before running any commands. If the check fails, it will simply exit 0. The problem I am having is that on our server, the script will exit the su or ssh session when the exit 0 is called.

#!/bin/bash
# check if directory has contents and exit if none
if [ -z "`ls /ebs_raid/import/*.txt 2>/dev/null`" ]; then
echo "ok"
exit 0
fi

Here is the output:
[root@ip-10-251-86-31 ebs_raid]# . test.sh
ok
[russ@ip-10-251-86-31 ebs_raid]$

I was removed from my sudo session, if I wasn't in the sudo session, it would have logged me out of my ssh session. I am not sure what I am doing wrong here or where to start.

View 1 Replies View Related

General :: Echo Command Error - File Exits

Mar 17, 2010

I faced a issue with updating a file contents with echo command which fails with error as below:
echo "foo" > bar //to create a file named "bar"
echo "foobar" > bar //to edit its contents

The latter fails, it prompts "File exists" i.e.
~>echo "foo" > bar
~>echo "foobar" > bar
bar: File exists.
~>cat bar
foo
~>

View 4 Replies View Related

General :: Write Script To Use Function And Still Keep Function Active?

Feb 21, 2010

the function terminates if no key is pressed for 10 consecutive seconds. I tried using the -t option as suggested in some forums, but my version of showkey doesn't have the option of changing the timeout. The options I get are:

-h --helpdisplay this help text
-a --asciidisplay the decimal/octal/hex values of the keys
-s --scancodesdisplay only the raw scan-codes
-k --keycodesdisplay only the interpreted keycodes (default).

Is it possible to write a script to use this function and still keep the function active until an interrupt is recieved?

View 6 Replies View Related

Programming :: Define Functions Within Other Functions In C++?

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

General :: Grep Exits Abnormally With Code 123 When Running Rgrep On Emacs

Oct 7, 2010

I'm running GNU Emacs 23.1.1 on "Ubuntu 10.04.1 LTS" and any search I perform using the built-in M-x rgrep on the standard Linux kernel source code (vanilla) ends prematurely with the following error printed to the emacs echo area:Grep exited abnormally with code 123.I have been seeing it for a while on Redhat systems as well, and with other (large) code bases.

View 2 Replies View Related

General :: Gnome-terminal Exits After Executing Parameter Sent With "-x" Option?

Aug 30, 2010

I have a bash script that launches an application of mine through a gnome terminal with the following command:gnome-terminal -x MyApplicationIf MyApplication launches correctly, a GUI is displayed. If it fails to launch correctly, it reports errors to stdout (the terminal).
My problem is, the terminal immediately exits when MyApplication exits, leaving no time to see the error messages if MyApplication fails to launch.You can also see this behavior by trying:gnome-terminal -x lsThe gnome terminal immediately exits.Is there a way to stop this behavior? I want the terminal to remain until I close it.

View 6 Replies View Related

General :: Functions Of The Tar Utility?

Apr 30, 2010

What are the functions of the tar utility?

View 9 Replies View Related

General :: Unable To Use Functions With Bash

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

General :: Change The Signature Of All The Functions In Scripts?

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

General :: Pthreads - Executing Two Different Functions Simultaneously

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

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 View Related

General :: Check The Referenced Functions In A Executable Through Command?

Oct 20, 2010

Is there any command that can check the referenced functions in a executable?

View 1 Replies View Related

General :: Use Inode Hook Functions(inode_alloc_security And Inode_free_security)?

Mar 4, 2010

how to use inode hook functions(inode_alloc_security and inode_free_security)?

View 1 Replies View Related

General :: Difference And Working Functions Between Kernel And Shell

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

General :: Warning Messages And Numerical Recipes Functions In C?

Jun 19, 2010

I am using some "Numerical Recipes in C" routines in my C code.(I am using ludcmp() & lubksb().)These are used to find inverse of a matrix.After compiling my c code, I get following warning messages.I have not understood them at all. What is the meaning of these and why did they pop up and how to remove them?

Code:
nrutil.h:11: warning: 'sqrarg' defined but not used
nrutil.h:14: warning: 'dsqrarg' defined but not used

[code]....

View 7 Replies View Related

OpenSUSE Hardware :: Multi-function Epson Stylus Sx218 - Can Not Run The Scanner Function ?

Mar 24, 2011

I bought a multifunction stylus sx218 Espon model and I can not run the scanner function. I did some research and found a few solutions and very functional. I hope someone solves the problem. My version of openSUSE 11.2.

View 9 Replies View Related

Programming :: How Can A Friend Function Access A Public Function From A Base Class

Nov 16, 2010

Code:
#include <iostream>
using namespace std;

[code]...

View 1 Replies View Related

Programming :: Passing Data From Interrupt Handler Function To Tasklet Function?

May 18, 2010

I am doing some Linux kernel programming for my research project. I need to record the timestamp (by using cpuid and rdtsc) when an interrupt handler (top half) is first invoked. Due to the time critical nature of the problem itself, I have to do the timestamping inside the interrupt handler itself (the first operation when the handler is called). However, I understand that tasks that are not so time critical should be deferred to a tasklet function (bottom half) for processing because other interrupts are disabled in a (top-half) interrupt handler. I am currently out of idea on how I can pass the timestamp information that I have obtained in the interrupt handler to the corresponding tasklet function.

View 2 Replies View Related

General :: Passing Commands As Arguments To Functions In Bash Script?

May 31, 2010

I wrote a simple bash script to let me treat any set of programs like a deamon. For example if I configure the script a certain way I can start/stop/get the status of apache, mysql and php all from one command. I am having a bit of a problem though. I am passing commands as strings to a function and then depending on the arguments to the script it might run one of these commands or another. Some of these commands need to beun in the background though, such as deluge-web. When I send "deluge-web &" to the function and it execute it deluge-web does not start in the background. I can't figure out why this is. I have tried escaping the & with ''s and with a , but nothing seems to work. I know that this is some idiotic thing that I am overlooking, but I am a bit stumped. Here is the script configured to start/stop/get status of deluged and deluge-web.

Code:
#!/bin/bash
function checkanddosomething {

[code]...

View 3 Replies View Related

General :: Belkin USB Wireless Functions Well In Jackalope But Fails To Connect?

Jun 12, 2010

I'm pretty new to Linux, but have had a bit of functional tutoring. i'm triple booting my old Dimension 8400. Have been running with Jackalope and XP for some time now and wanted to install Lynx and get a good handle on it before i completely wipe my other machine (Win7/Jackalope) and install it there.

Installed Lynx from a USB stick and all seems well, it recognises the UBS wireless and all available connections but just sits and spins on the password login and never connects...hmmm. I have tried all possible combinations of rebooting with the USB connected/disconnected/connecting after... to no avail.

The wireless seems to "work out of the box" just as seamlessly as it did for Jackalope, all the steps are similar, it just never connects.

View 6 Replies View Related

OpenSUSE :: KDE Help Center On 11.2 Does Not Exits

Jul 12, 2010

I will describe the steps that produce the error:

0.My home directory is leon
1.Open KDE Help Center
2.Go to Search Tab
3.Application Manual Index Status OK
4.Select Application Manual Index
5.Write the search term "lskat" and press Search button
6.Click on the only result

The following message box appears: The file or folder help:file:///home/leon/.kde4/share/apps/khelpcenter/index/kde_application_manuals.tmp/index.html
does not exits

Also in the main window of khelpcenter the following message appears: There is no documentation available for /file:/home/leon/.kde4/share/apps/khelpcenter/index/kde_application_manuals.tmp/index.html

View 4 Replies View Related

OpenSUSE :: Get Function Set_magic_quotes_runtime() To Function On The Newer Versions?

Mar 30, 2011

I'm currently using OpenSuse 11.1 web server. This is bad since 11.1 is no longer supported. the reason why I am using it is because Function set_magic_quotes_runtime() was no longer being used. (so I was told)

That being said, is there a way to get Function set_magic_quotes_runtime() to function on the newer versions of OpenSuSE?

View 9 Replies View Related

Fedora :: Texlive Package Exits In F12?

Nov 30, 2009

is texlive package exits in fedora 12 ?i haven't found it.in previous release of fedora i was just installing kile and latex was working but in fedora 12 i think that tex doesn't exist.i wanna to know if it exist or not

View 2 Replies View Related

Ubuntu :: Desktop Not Repainted When VLC Exits?

Sep 8, 2010

I'm running VLC (full screen mode) on Ubuntu 10.04 with the gnome desktop. When I exit from VLC, it does not repaint the desktop. It leaves the entire screen white. I can click on the screen, and this causes the rectangle formed by the upper left corner of the screen and the current mouse position to get repainted. So, by clicking on the screen near the bottom right corner will repaint the desktop (mostly). Does anyone know how to fix this?

View 2 Replies View Related

Debian :: Squeeze Archiver Exits With An Error Of 256?

Nov 2, 2010

I'm getting the following error when trying to extract a rar file using Squeeze in XFCE.

"Command exited with status 256."

View 1 Replies View Related

OpenSUSE :: Debugger Exits Without Stopping At Breakpoints?

Sep 14, 2010

openSUSE 11.1
KDevelop 3.5.5 using KDE 3.5.10 "release 21.12.1"
gdb 6.8.50.

Problem: When I attempt to debug my program with breakpoints set the debugger does not stop at breakpoint. Message in gdb window is:

/bin/sh -c libtool gdb .../C++/Graphyxs/debug/./src/graphyxs --interpreter=mi2 -quiet
(gdb) set print static-members off
(gdb) Process exited

Attempted fix: Some forum posts suggest KDevelop upgrade. Upgraded from 3.5.4 to 3.5.5; gdb upgrade not available in openSUSE.

Other posts recommend assurance that debugger options are properly set. KDevelop Project Options has Compiler Flags -O0 -g3 with "debug" configuration.

View 1 Replies View Related

OpenSUSE :: Yast Exits After Install Of Packages?

Nov 18, 2010

Is it possible to configure Yast Software Manager module so that it does not completely exit when done installing a package? It get's annoying to search for a package and install it, the software manager exits, you then have to reopen it, install another etc. a few minutes later.

Seems this would be a config option, but if so I can't seem to find it.

View 5 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved