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


ADVERTISEMENT

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 :: Remove Virtual Machine And Deleted VM Folder From Hd?

Sep 21, 2011

I want to remove Virtual Machine and I have deleted VM folder from hd. It's still shown in the VirtualBox GUI but the settings are grayed out.

View 2 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 :: 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 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

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

Ubuntu :: 10.10 - Need Fn Key To Use F Functions

Apr 17, 2011

I have a Dell Inspiron Duo. Running Ubuntu 10.10 On my laptop, the enable/disable wireless and my F2 key share the same space and I need to press the Fn key to use F2 (I know supposed to go other way). But sometimes, they trade places. Where I that If I press the Fn key, it would enable/disable the wireless connections instead of doing F2.

What could be causing this and how do I stop it. This happens with not only my F2 key, but all the F functions. Also does anyone know how to reenable wireless after disabling it in Ubuntu. Pressing the enable/disable button does nothing after disabling and would require a boot to windows to reenable it.

View 3 Replies View Related

Programming :: Where Are Described Functions That Can Be Used With Stap

Mar 26, 2011

could you please explain few questions about systemtap.

1st
===
seems gettimeofday_s() always returns 0 Code: stap -ve 'probe timer.s(4){ printf("%d ",

[code]....

View 2 Replies View Related

Fedora :: How To Map Keys To Get Certain Functions That I'm Used To Working

Sep 7, 2009

I just bought an Apple (intl.) keyboard because of its stylish look and weight but I can't figure out how to map keys to get certain functions that I'm used to working.
Particularly Alt+Ctl+F1~6 when wanting to switch to regular terminal and print screen.
Is there a tutorial out there that explains how to map keys?

View 3 Replies View Related

Ubuntu :: Change Certain Keyboard Functions?

Feb 22, 2010

I have an Msi Wind u100+. Between the right hand Alt Gr and CTRL keys there is a key that looks like a menu. It seems to have the same function as a right mouse click. I want to know how to change this specific keys' function, such as use it to launch a terminal or another Super key. Ive tried Keyboard Shortcuts but its main right click function prevails. Also, searchng the forums and google only brings up how to change the entire keyboard layout to DVORAK or something and that's not what I want to do.

View 1 Replies View Related

Ubuntu :: Inbuilt Library Functions Of C++?

Mar 16, 2010

I use g edit to write my C++ codes. How can I know the inbuilt library functions of C++?

View 4 Replies View Related

Ubuntu :: How To Know In Built Library Functions

Mar 21, 2010

while writing my codes in g-edit, how do I know the in built library functions? Like in turbo C we can see the library functions? Is there any such features?How can I do that?

View 1 Replies View Related

Ubuntu :: Mouse Clicks Functions L & R Are Gone?

Sep 7, 2010

i have lost left and right click functions in mouse and touchpad. This only happens when in a window - as in running App. when on top or bottom bar L&R click function normally and on cairo doc too. but inside any APP window left click turns into a hand and grabs it and moves the whole window around. Right click pops up the menu to close it , move workstation Right or Left etcetc So it is like the whole window is now like the title bar area

i have to hold Shift+control down to have normal mouse/touchpad function

I was playing with the Sugar App and its an emulator an educational toy for kids

it tells you to hold shift+control down so you can move the mouse out of the sugar window

and to hold Shift+control+any key for keyboard function

god knows what keys i hit

get my mouse / touchpad functions back

i have already removed all the SUGAR apps via synaptic

View 4 Replies View Related

Programming :: Definitions For C Library Functions ?

Apr 24, 2010

Where are the definitions for C library functions located? It was just recently that I realized that header files don't actually define any functions, they merely include their prototypes.

For instance, stdio.h includes the following line:

Code:

This just means that the definition of printf() is located in another file. What file? Is there some kind of default shared object file that is automatically included during compilation?

View 2 Replies View Related

Programming :: Unable To Use An Alias In The Ksh Functions

Apr 4, 2011

I have problem to use an alias that defined in ksh93 script,in the functions in the same script onm Linux.I definied an alias in main: alias echo='echo -e' in order that echo will read backslashes but when i executed it in function, the alias didnt work, and performewd a regular echo, without -e

cat test.ksh
#!/bin/ksh
alias echo='echo -e'
checkUsage

[code]....

View 1 Replies View Related

Programming :: Check The Db For Some Value And Run Some Functions To Do Some Checks?

May 15, 2011

have an application where from time to time I need to check the db for some value and run some functions to do some checks. is the best option do it as php daemon or cron job?Whatworried of cron job is the overalapping.

View 9 Replies View Related

Programming :: Defining Functions - What Is The Difference?

Aug 12, 2010

But what is the difference between this...

Code:
my_fucnction () {
echo "Hello World"
}
Code:
function my_fucnction {

[Code]...

View 10 Replies View Related

Programming :: Multithreading For Callback Functions

Jan 4, 2011

Im implementing a chat application using Jabber/XMPP and gloox framework which should send and receive messages concurrently in Ubuntu Linux.

The problem faced is both the threads are created and pthread_join( ) is called for both.The iSend thread is scheduled first but gets suspended at cin. Once the recv( ) function is called, which runs in iRecv thread, the recv call back function handleMessage( ) is called. However the control never shifts back to the iSend thread which should call SendMessage( ) function.

View 1 Replies View Related

Programming :: Nesting Switch Functions In C?

Apr 12, 2010

I am trying to write a simple program in C that involves nesting switches. For example switch 1 offers an option to go to module 1 or 2 or quit. when I go to module 1 there is another switch function offering two or more choices.

I can select either module 1 or 2 at the start of the program and the selection text for, say, module 1 prints to screen but then exits without allowing a second selection to be entered.

I tried using free([first selection]) thinking that might do the trick but it doesn't.

Is it possible to next switches on after another in C?

View 14 Replies View Related

Programming :: Macos Does Not Have Barrier Functions?

May 9, 2010

The pthreads library on macos does not have barrier functions (pthread_barrier_t ....). Is there a way to get around this? I know I can do :

#ifdef __APPLE__
pthread_barrier_t ...
#else
my_barrier ...
#endif

But I would like to avoid this approach as there are a lot of places in my program where I would have to make this change. Can I perhaps rebuild the pthreads library on macos without affecting other apps ?

View 2 Replies View Related

Debian :: Why Functions And Gadgets Doesn't Work

Jun 10, 2010

I'm running Debian Lenny 5.04, I switched from Ubuntu 'cause it was dissapointing me, there are lots of functions and gadgets but they just don't work and I can see it's fun thing to spend all your time fixing your computer IF you have no responsibilities at all.

For me on the other hand, I just want a system that works, doesn't look ancient and does not have it's head up it's ass. That used to be Debian, since installing Lenny however I noticed a couple of things that seem to have changed in the GUI. For instance, is there ANY STRAIGHTFORWARD way to install the REGULAR firefox with a REGULAR adobe flash player? And by straightforward I mean, using the systems strongpoint and installing it via a .deb-package.

This is really starting to piss me off, everytime I try following some idiot's tutorial on how to accomplish this and everytime it makes such a goddamn mess I can't seem to get it back to where I started and the system becomes really ubuntu-like ( instable). I just want a Firefox with working flash, that shouldn't be a problem anno 2010 right?

View 14 Replies View Related







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