General :: How To Call Other File
Apr 10, 2011i 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 Repliesi 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 RepliesIn 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 RelatedI have created a executable file using c and I have also created a GUI using GTK+. Now how can I call the executable file from the GUI with arguments passing to the executable file.
View 4 Replies View Relatedwhat 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 RelatedI 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 RelatedI 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.
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 RelatedI 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 Relatedi 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]...
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 View RelatedI have configured a kickstart file where it will ask for the hostname, ipaddress and so on from the user and will proceed further.But I would also like to detect the keyboard, mouse and language and provide it to the user so that he can select the required options.Do I have to call any existing CentOS scripts from ks.cfg file?or if any one has developed any scripts or can any one give me any inputs for it.
View 2 Replies View RelatedIs 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.
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?
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 RelatedHere 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]...
mplement the read system call in unix...i want the code for read system call...
View 6 Replies View RelatedI 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 RelatedI 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?
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 RelatedHow to call script b from inside script a in a new shell.
View 2 Replies View RelatedI 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
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.
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 Relatedhow to call or resume a paused process in to another terminal.
View 1 Replies View RelatedAs 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 RelatedI 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
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:
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?
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 RelatedI'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