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


ADVERTISEMENT

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 :: Environment Variable And Current Shell

May 24, 2010

I am using Red Hat Linux Enterprise 5. I know the theory that -- using export to set environment variable, the environment variable will apply to current and child environment, but without using export to set environment variable, the environment variable will only apply to the current environment. What is the exact definition of "child environment" and "current environment"? For example,

Code:
$ var1=123
$ echo "Hello [$var1]"
The value of var1 (which is 123) is printed in shell, but I think echo is a command invoked by current shell, and it (the echo command) should be a child environment of current shell and the value of var1 should not (because not using export var1=123) impact echo.

View 13 Replies View Related

Red Hat :: Call CGI W/POST Variables From Shell?

Jun 16, 2009

I've got a CGI that I'm trying to debug. Apache gives me an ambiguous 500 error; it would be nice to see the raw output via the shell. I've got the POST request w/headers as follows. What's the best way to troubleshoot this?

POST /cgi/packBoxes.cgi HTTP/1.1
Host: 70.87.60.214
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10 (.NET CLR 3.5.30729)
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8

[code].....

View 1 Replies View Related

Programming :: Call Shell Script In Perl Pm

Sep 4, 2010

i used ldap for authentication.now i have a perl script that users use it for login(contact.pl),then this script calls a shell script(ip.sh) for create iptables chain.

when i call that into contact.pl ,it just prints: usr/sbin/iptables but ip chains didn't change.what is problem? whenever run ip.sh in bash it works correctly

View 10 Replies View Related

Programming :: Scenario For Call Shell Function From Mysql?

Apr 18, 2011

I am trying a scenario for calling a shell script when ever a trigger is called. Can some one guide me how to achieve this scenario. Also it should passes the value from the table to the shell script. Can some one explain me along with the example.

View 2 Replies View Related

Programming :: CGI Shell Scripting : Possible To Call Function From Other Script?

Mar 15, 2011

I got two cgi shell scripting files. Is it possible when i am in file 1, to call a function from file 2?

View 2 Replies View Related

Programming :: QNX Checksum Call In Cgi Shell Scripting Not Working?

Mar 11, 2011

I have a QNX machine with a slinger webserver running on it. With a cgi script i'm trying to do the QNX cksum call and compare it's output value with a fixed output. When i execute the script at the command line it works perfect, but when execute this script by by the webserver in my browser it doesn't work. Here's my code:

#!/bin/sh
FILE="/home/checkfile"
ORIGCHECK="1712885500"

[code].....

Could it be possible that i'm not allowed to do the cksum call in combination with the slinger webserver?

View 4 Replies View Related

Ubuntu Networking :: Call Shell Script On Network Change?

Jan 21, 2011

I have a script that I would like to run when my laptops connects to a new network (e.g. changes to another SSID). I've done some searching on the net but could not find any suitable solution (but I bet there is).

View 6 Replies View Related

Programming :: Bash - Use The Call Command (displays The Current Month And The Next Month)?

Mar 8, 2011

how i can use the cal command so it displays the current month and the next month, i know you can use cal -3 9 2007 to show the previous current and next but i just want to display the current and next.

View 9 Replies View Related

Slackware :: Upgraded To 'current' - Error "Could Not Start D-bus. Can You Call Qdbus" When Trying To 'startx' To Fire Up KDE

Feb 10, 2010

Upgraded to 'current' and now have a series of problems. First, when trying to 'startx' to fire up KDE I get the following error message, "Could not start d-bus. Can you call qdbus?" If I try Xfce it gives this similar message, "Failed to execute dbus-launch to autolaunch d-bus sessions. When logging in, but before entering the password this error message pops up:

'Dialups-check-enab'
'nologin-str'
'Configuration error - unknown item. (notify administrator)'

View 6 Replies View Related

Debian Multimedia :: Current Status Of Gnome Shell?

Jul 28, 2010

I'm using Squeeze, and haven't seen an update in the Debian repo for some time. Seeing as it's due for release soon (September), can we expect some updates in the near future? I had been using Gnome Shell in Ubuntu with much success, including compiling my own. These days, I cannot afford the bandwidth, and have encountered an unknown problem [URL] under Debian Squeeze. Currently, I'm experiencing a very annoying flickering issue using the repo version which I know does not exist anymore in the current gnome development. To have at least one update now before the release date would be nice to see.

View 14 Replies View Related

Software :: Strace Crashes Shell/system When Being Used On Current Bash?

Jun 8, 2011

I am observing a very strange behavior when using strace and don't know the reasons for it.

I do: pstree -Aapnul |less -p bash on my Ubuntu VM which is run with the help of Virtual Box.

I see:

|-gnome-terminal,1418,valentin
| |-gnome-pty-helpe,1419
| |-bash,1420
| | |-pstree,1471 -Aapnul

[Code]....

View 1 Replies View Related

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 :: $HOME/.bashrc Disabled When User Shell Is 'rbash' (restricted Shell)?

Jun 15, 2011

MACHINE: HP Proliant DL260G5OS: SLES 11 SP1kernel: Linux xserver 2.6.32.12-0.7-default #1 SMP 2010-05-20 11:14:20 +0200 x86_64 x86_64 x86_64 GNU/LinuxIt is used as remote xserver in a LAN.I have configured /usr/lib/restricted/bin/.rbashrc with some environment variables but when the users logon in the system finally is executed $HOME/.bashrc and some environment vars are overwritten.

View 2 Replies View Related

General :: Write A Shell Script Instead Of Shell Function?

Apr 27, 2011

I would like know when it is necessary or advisable to write a shell script instead of shell function ?

View 3 Replies View Related

General :: Open A New Shell From A Shell And Switch Between Them?

Jan 18, 2011

I am wondering if I can open a shell or new terminal thing from within the terminal in a unix/linux enviroment. Particularly a commandline only one where there is no GUI. Is this doable? how do I do it?

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







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