hi unix guru's
i am new to unix shell programming.
i found a trouble in executing a script(bali.ksh) which is available on serverA with username xyza, this script contains sqlplus command to retrive the data from the database available on other serverC.
Now i need to run the above script... (4 Replies)
Hi everyone
I intend to trigger a script from one machine say mc1 that actually excutes on different machine say mc2 and redirect the logs to that machine mc2.
I tried to use nohup <nfs location of machine >/script.sh > <nfs location of machine >/script.log 2>&1 &
nfs location of... (2 Replies)
We have a few machines which share the same directory. How can I execute the same script under that directory in different machine while I am using mine? (1 Reply)
Recently, I need to generate a lot of files from a few master files. In fact, if I relogin to the server machine, my operating would be much faster. My question is this: Can I write a script in which the current path can be automatically saved and relogin to the server to execute my command in the... (0 Replies)
Hello,
Can someone tell me the method to execute the script from any location on linux server whereas It resides on a particular location
e.g.: Suppose script resides at this location
/efare1/dist/src
monitor.sh
But I want If user know the name of the script he should not remember... (2 Replies)
Hi
Hope someone can sched some light i'm trying to execute a script via sudo but i don't want to be prompted for a password when i run the script using sudo
my sudo entry does work in that the script gets executed but i'm having to give a password, my current entry is given below
user1 ... (0 Replies)
So, is there way of automating this ?
My ultimate goal is to run some cmd script in windows and it should connect to a remote unix host and run a script x.sh located on the remote unix host.
I was wanting to achieve this by using WinSCP and Putty only. If possible let me know how and if not... (25 Replies)
Hi All,
We have 2 servers A and B.
B is having a sctipt called b.sh in path /home/dev/scripts.
Now my requirement is i want to execute b.sh from server A.
Kindly help me. (3 Replies)
I want to execute a shell script(set of commands) on remote machine and that script takes input from text file(local machine). Please refer below:
ssh user@hostname 'bash -s'< ./test.sh file.txt
But i got the error file.txt doesn't exist.
Can anyone help me on this.
Content of test.sh:
... (2 Replies)
I have reviewed many examples on-line about running another process (either PERL or shell command or a program), but do not find any usefull for my needs way. (Reviewed and not useful the system(), 'back ticks', exec() and open())
I would like to run another PERL-script from first one, not... (1 Reply)
Discussion started by: alex_5161
1 Replies
LEARN ABOUT PLAN9
cpu
CPU(1) General Commands Manual CPU(1)NAME
cpu - connection to cpu server
SYNOPSIS
cpu [ -h server ] [ -c cmd args ... ]
DESCRIPTION
Cpu starts an rc(1) running on the server machine, or the machine named in the $cpu environment variable if there is no -h option. Rc's
standard input, output, and error files will be /dev/cons in the name space where the cpu command was invoked. Normally, cpu is run in an
81/2(1) window on a terminal, so rc output goes to that window, and input comes from the keyboard when that window is current. Rc's cur-
rent directory is the working directory of the cpu command itself.
The name space for the new rc is an analogue of the name space where the cpu command was invoked: it is the same except for architecture-
dependent bindings such as /bin and the use of fast paths to file servers, if available.
If a -c argument is present, the remainder of the command line is executed by rc on the server, and then cpu exits.
The name space is built by running /usr/$user/lib/profile with the root of the invoking name space bound to /mnt/term. The service envi-
ronment variable is set to cpu; the cputype and objtype environment variables reflect the server's architecture.
FILES
The name space of the terminal side of the cpu command is mounted on the CPU side on directory /mnt/term.
SOURCE
/sys/src/cmd/cpu.c
SEE ALSO rc(1), 81/2(1)BUGS
Binds and mounts done after the terminal lib/profile is run are not reflected in the new name space.
CPU(1)