Sponsored Content
Top Forums Shell Programming and Scripting running commands from outside of bash Post 56133 by rakabarp on Tuesday 28th of September 2004 11:27:28 AM
Old 09-28-2004
running commands from outside of bash

Hello all!

I have two consoles.I know the PID of these two.Now I want to execute a command in console#1 but from console#2. How can I achieve this?
Anyone can do something for my query?

Click here if you can't understand my query or to know the need for this query.

Last edited by rakabarp; 09-28-2004 at 12:36 PM..
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

running commands from script

I'm new to unix and I have a fairly simple problem: Lets say I am in a specific directory and I run the command: "dirs" , I get an output of all the folders that i pushed into the stack (as expected), buut, when when I create a script (called test): #! /bin/csh dirs and then i run:... (2 Replies)
Discussion started by: owijust
2 Replies

2. UNIX for Advanced & Expert Users

Problem in running bash shell commands on HP-UX machine

Hello All, After login to the server we are explicitly calling /usr/local/bin/bash to activate bash shell properly. But since commands are not executing properly so I think it is not initialized well. I am facing following problems: 1) If I want to have a look on a particular file using tail... (6 Replies)
Discussion started by: abhishek0071
6 Replies

3. Programming

Running UNIX Commands from C

Hi, -How can I get number of files, cpu usage (percentage), memory usage, disk usage, ...etc, using C program ... I can use unix command ( system(command) )but I want the value to be returned back to my C program to use it in my code? How can I do that? Thanks in advance ... (2 Replies)
Discussion started by: zainab
2 Replies

4. Programming

Running shell commands from C/C++

Hi guys, I know using system() we can run unix commands but the problem is, I can't get any returns with the system(). I am returning stuff from my shell scripts that I need to be able to read from my C code. Anybody has cure to this problem? :)) Thanks (2 Replies)
Discussion started by: alirezan
2 Replies

5. Shell Programming and Scripting

Can BASH execute commands on a remote server when the commands are embedded in shell

I want to log into a remote server transfer over a new config and then backup the existing config, replace with the new config. I am not sure if I can do this with BASH scripting. I have set up password less login by adding my public key to authorized_keys file, it works. I am a little... (1 Reply)
Discussion started by: bash_in_my_head
1 Replies

6. UNIX for Dummies Questions & Answers

Running two commands in one line

hi! how do i run 2 command from the same line e.g: 'which screen' and then ls -la 'which screen' (4 Replies)
Discussion started by: rdns
4 Replies

7. Shell Programming and Scripting

Running sed commands

Hello I need to run some sed commands but it involves "/" in the substitute or delete, any ideas how I get round the problem. Example: cat file1.txt | sed -e '/</Header>/d' > file2.txt This errors due to the forward slash before the Header text. Thanks (3 Replies)
Discussion started by: Dolph
3 Replies

8. Shell Programming and Scripting

Running BASH commands from a variable

I am trying to assign a command to a variable and use it. I have tried every possible quoting variation except the correct one. :confused: Here is an example: CMD="grep description $i | grep "::"" $CMD | nawk ...Thanks in advance for you help. (1 Reply)
Discussion started by: aschera
1 Replies

9. Shell Programming and Scripting

Running commands in backgroud

I have a small question may be this will be discussed before I have two files file1 and file2 with huge data and I am running the commands as cat file1 |sort & cat file2 |sort & If the session is got disconnected or logout will this command run in background, or shall we use nohup (3 Replies)
Discussion started by: morbid_angel
3 Replies

10. Shell Programming and Scripting

How to run several bash commands put in bash command line?

How to run several bash commands put in bash command line without needing and requiring a script file. Because I'm actually a windows guy and new here so for illustration is sort of : $ bash "echo ${PATH} & echo have a nice day!" will do output, for example:... (4 Replies)
Discussion started by: abdulbadii
4 Replies
cvc(7D)                                                               Devices                                                              cvc(7D)

NAME
cvc - virtual console driver DESCRIPTION
The cvc virtual console driver is a STREAMS-based pseudo driver that supports the network console. The cvc driver interfaces with con- sole(7D). Logically, the cvc driver sits below the console driver. It redirects console output to the cvcredir(7D) driver if a network console con- nection is active. If a network console connection is not active, it redirects console output to an internal hardware interface. The cvc driver receives console input from cvcredir and internal hardware and passes it to the process associated with /dev/console. NOTES
The cvc facility supersedes the SunOS wscons(7D) facility, which should not be used in conjunction with cvc. The wscons driver is use- ful for systems with directly attached consoles (frame buffers and keyboards), but is not useful with platforms using cvc, which have no local keyboard or frame buffer. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +--------------------+--------------------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +--------------------+--------------------------------------+ |Architecture |Sun Enterprise 10000 servers, Sun | | |Fire 15000 servers | +--------------------+--------------------------------------+ |Availability |SUNWcvc.u | +--------------------+--------------------------------------+ SEE ALSO
cvcd(1M), attributes(5), console(7D), cvcredir(7D), wscons(7D) Sun Enterprise 10000 SSP Reference Manual Sun System Management Services (SMS) Reference Manual SunOS 5.10 15 Sep 2000 cvc(7D)
All times are GMT -4. The time now is 10:18 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy