General :: Script Won't Call Other Scripts

Jan 7, 2010

I have 3 scripts that need to be run from the cd, I can run them separately but thought it would be easier to just call them from a single script.When I run the script it just goes straight to reboot, which is the last command. Can you see what I am doing wrong? I am logged in as root when I execute it.

View 3 Replies


ADVERTISEMENT

Software :: Script That Call A Java Program That Call A System Command?

Nov 29, 2010

In practice I have a script that call a java program that call a linux system command. The script if I run it, from a shell functions well,so it is not a java problem. The problem come out when i put this script in a crontab schedulation. The result in this case is that java do not execute the system command. I think it depends on crontab

View 4 Replies View Related

General :: How To Call Other File

Apr 10, 2011

i want to know how to call the other file in linux. example i got this code that store into example1.sh and i want to store the data into other file like example2.

View 2 Replies View Related

General :: What Is Signal0 In System Call

Sep 28, 2010

what is what is signal 0 in linux system call ?i can't find that in kill -l signal list . i need to know what is signal 0 . * for examples signal 1 is SIGHUP and signal 2 is SIGINIT . what is signal 0 ?

View 1 Replies View Related

General :: Call Other Script Having Different Permissions

Feb 7, 2010

I am writing a shell script lets say run.sh and i want to call another script lets say test.sh having permissions " root:sys" whereas the permissions for run.sh are "rootther".Problem is that i cannot change the permissions of either of them. run.sh is performing some other important functions as well and test.sh is a system script and i am not supposed to change that.If i do not change the permissions, run.sh simply skips the part where it is suppose to call test.sh.Can anyone tell me how do i call test.sh in run.sh without changing permissions of any of them.

View 2 Replies View Related

General :: How To Create And Call Process

Sep 24, 2010

I had an interview , where the interviewer asked me the question "How to create and call a process in unix". I answered that we can use the command
FORK()/ CLONE() to create a process.
But I didn't have the answer for the second question, how to call a process.

View 2 Replies View Related

General :: How To Call Certain Command Info

Oct 13, 2010

When I an in Emacs, I want to call info pages like in terminal. E.g., info date will call the date info page, but when I in Emacs, I can only use M-x info call the complete info pages, but I only want to see the date info page. Then which command I should execute in emacs.

View 4 Replies View Related

General :: Call Other Executables From Cpp Code?

Jan 18, 2010

I want to launch other executable from my cpp code. I am aware that system() call may do this , But, problem is that , I want my cpp code to capture the standard hat "called" program is writing to stdout.

View 2 Replies View Related

General :: Nfs :RPC Call Returned Error 101

Feb 23, 2010

i am trying to run an application code in nfs host.but facing the problem as shown below.can anybody tell what the problem could be?

[code]...

View 2 Replies View Related

General :: Mac OS X - Video Call With IPhone 4 Users?

Oct 1, 2010

Is there any application I can use on a Mac and people can use on their iPhones 4 to do video calls?

If beyond Mac OS X apps you can also mention Ubuntu Linux and WIndows apps that can do that too.

As far as I checked, skype is not an option.

View 3 Replies View Related

General :: Swap - Configure To Call Oom_kill On Its Own?

Jun 18, 2011

I do not want my computer to swap data to disk. I have no swap partition:

[Code]...

Back in the day (maybe as recently as kernel 2.4?) this used to work. Memory-hungry processes would be killed by the oom killer and I would restart them. But now (Linux 2.6.38-8-generic #42-Ubuntu SMP Mon Apr 11 03:31:24 UTC 2011 x86_64) google-chrome (13.0.782.24 beta) regularly sends my machine into a death-spiral of swapping. Or at least something that feels like swapping: X windows take forever to update, disk drive whirs, gnome panel memory chart hits the ceiling, and I see this message in the syslog:

[Code]...

But, according to syslog, the kernel does not run the oom killer. For good measure, I set swappiness to 0:

[Code]...

My workaround is to use ctrl-alt-sysrq-f when this starts to happen. Anyone have a recipe for configuring Linux to run oom_kill on its own, in this situation?

View 1 Replies View Related

General :: Call Makefile From Shell Script

Apr 12, 2011

I can find all kinds of information on calling a script from a makefile but not the other way around.I'm writing a VERY basic shell script, and I need to call a makefile located in a directory lower than the shell script but can't seem to figure it out../dir/make and ./dir/makefile don't work.

View 2 Replies View Related

General :: Does The Backtrace Call Lost Memory

Oct 11, 2010

Here is a test code for memory alloc and free. It is to detect whether the allocs and frees match. From the result, after backtrace call, there is some memory alloc, but it does not free these memories after calling or the process exit. Why? Nomorlly, the memory alloced need to be freed after use, or the memory will leak. But I run this program for about some times, and find that though the system memory does not real leak,the free memory decreases, and the cache increases(Use free command).

[Code]...

View 6 Replies View Related

General :: The READ System Call In UNIX?

Oct 29, 2010

mplement the read system call in unix...i want the code for read system call...

View 6 Replies View Related

General :: Call Windows Program Using Wine?

Jul 10, 2010

I have Linpus runnig on my Aspire One. I would like to setup an icon on the menu to start a windows program using wine. I can start it manually and it works fine. I want to be able to access it directly from the desktop.

View 3 Replies View Related

General :: Error While Adding The New System Call?

Jun 9, 2011

I have added a new system call for kernel version Linux 2.6.25-14.fc9.i686. after kernel compilation and running the user mode program i am getting the below error

Error :: Function not implemented
Error number 29

I cannot find the syscall_table.S or entry.S file in the source code , so i didn't made the entry of the syscall in this file, how much necessary the entry of syscall presence in this list and how to get this file?

View 1 Replies View Related

General :: Getting Return Status Of Popen Sys Call?

Mar 22, 2011

i using Popen() sys call in my code to run a script. i know it will return file pointer. but requirement is some how i need to get return status of process which is invoked by popen. there any possibility to get its status, if so please let me know. FYI i cant use system() here becoz of some limitations

View 5 Replies View Related

General :: Call A Script In New Shell From Current?

May 3, 2010

How to call script b from inside script a in a new shell.

View 2 Replies View Related

General :: Call Another Bash Script To Run On A Subfolder?

Sep 29, 2010

I want my bash script to run scripts located on a different folder. If it is also located on the same folder with my script, it will go like this:

on my $HOME folder: (this_script.sh, backup.sh, restore.sh, purge.sh)
#!/bin/bash
./backup.sh
./restore.sh
./purge.sh

But what if, on my $HOME folder: (this_script.sh)

$HOME/scripts folder: ( backup.sh,restore.sh, purge.sh )

Below doesn't work...

#!/bin/bash
./$HOME/scripts/backup.sh

View 5 Replies View Related

General :: System Call To Know Files And Directories In PWD

Mar 3, 2010

I am searching for any system call similar to "ls" command we use in shell. My requirement is knowing the files and directories in curent working directory and process them based on there type. Here as of now I spawn another procees with system command like system
("sh ls -l | grep ^d | awk '{print $9}'").

Instead of this I want to use any system command where I can capture this information directly into my local character buffer. My opinion is that system calls will not spawn another process as a result less time it takes, another reason is once I use the system command again I need to capture the information to a local file then again read it into local buffer. I want to avoid the file manipulation here.

View 1 Replies View Related

General :: How To Determin Function Call When Application Run On System

Sep 6, 2010

How can it be determined whether a function defined in some file of an application source-code(meant for multiple operating systems e.g., Linux, AmigaOS) is actually called when the application run on Linux?

View 9 Replies View Related

General :: Call Or Resume A Paused Process In To Another Terminal?

Jan 13, 2010

how to call or resume a paused process in to another terminal.

View 1 Replies View Related

General :: Access Driver Function Using System Call ?

Apr 13, 2010

As per my knowledge, one can use systemcall to call the driver functions for example using open, close... Now is there any way to call driver functions directly from application without using system call?

View 4 Replies View Related

General :: Echo Password To SU - PPPD Call Idea

Feb 25, 2011

I have to run "pppd call idea" command from root shell every time to connect to internet from mobile. Now I want a script so that I just run it to connect. Something like :

#!/bin/sh
echo "password" --stdin | su -
pppd call idea

But its showing error that "standard in must be a tty". Why is this. Using CentOS 5.5

View 2 Replies View Related

General :: How To Call Ethernet Card - By Device Name Or Nick Name ?

Jun 23, 2010

I want to know that in my Linux box under "Network Configuration....>Devices" i can see Device eth1 and Nickname eth0.

The ambiguity in my mind is when we want to down network interface we should call it by device name or nick name

Example

Or

Code:

View 4 Replies View Related

General :: Define File_operations For Kernel Ioctl Call?

Apr 8, 2010

I have a kernel function device_ioctl(). How do I define it in file_operations?

1. struct file_operations memory_fops = {
ioctl:device_ioctl
};
2. struct file_operations memory_fops = {
.ioctl=device_ioctl
};
3. struct file_operations memory_fops = {
device_ioctl
};

which one is the right one?

View 1 Replies View Related

General :: Mute Or Pause When Receiving Phone Call Via Bluetooth?

Jul 29, 2010

Is there an app out there that will at least mute my speakers or pause my music when I receive a phone call? This would come in handy since I listen to music a bit loud and have a phone that vibrates like a kitten.

View 1 Replies View Related

General :: Cd Dirname - Use The Output Of A Nested Bash Builtin Call

May 2, 2011

I'm trying to remember how to use the output of a nested Bash builtin call. So `which prog` gives me the path to the program, i'm interested in. Then I would like to get the directory path leading to that program and plug it into 'cd', so i end up in the directory containing the program.

View 5 Replies View Related

General :: Assign IPV6 Address Using IOCTL System Call?

Jul 22, 2011

Please send me the code how to assign ipv6 address using ioctl system call using C.

View 1 Replies View Related

General :: Reboot(LINUX_REBOOT_CMD_RESTART) - Lock Up The System And Does Not Return From The Call?

Jul 8, 2011

I am running an embedded Linux Release 2.4.19-uc0.

I have code in several places that calls

reboot(LINUX_REBOOT_CMD_RESTART)

successfully. I need to put it into a new place in a application running on the system. When I do, it seems to just lock up the system and does not return from the call nor leave me able to Telnet in or Ping or anything. I've tried puttingtrace code in to write info out to a file, but that too is not working (as it never returns from the reboot() call.I don't get any error from reboot(), it just does not return and does not appear to restart the system.

View 3 Replies View Related







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