Sponsored Content
Top Forums UNIX for Advanced & Expert Users Spawn a new unix window by command Post 302426860 by Hunter85 on Thursday 3rd of June 2010 06:11:31 AM
Old 06-03-2010
MySQL Spawn a new unix window by command

Hi Experts,

I hav a question for you..

Can we open a new window(SunOS 5.10,Putty) by a unix_command from the one we're on? Is it possible?

Thanks.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Equivalent unix command to minimize/maximize xterm window

To all experts, I need some advice on how I can enter a unix command which is equivalent to the action of minimizing/maximizing an active xterm window. How can I do this (i) when control is in the active xterm window to be minimized/maximized , & (ii) when control is in a xterm window which runs... (0 Replies)
Discussion started by: icemocha75
0 Replies

2. Shell Programming and Scripting

Can 'spawn' command be used more than once in an expect script ?

Can 'spawn' script be used more than once in a given expect script ?? What I'm trying to do is, first log-into a remote server through one 'ssh' spawn com and then from there log-into another server using a secod 'ssh' spawn command. But this approach is not working... the second ssh attempt... (1 Reply)
Discussion started by: clakkad
1 Replies

3. Shell Programming and Scripting

Unix script that can spawn

Hi I need a unix script that can spawn 100 unix PIDs that each execute the lgtst command as <Sid>adm within milliseconds. Thanks in advance Rgd Ruud van Ruler (4 Replies)
Discussion started by: Snrru0
4 Replies

4. Shell Programming and Scripting

SPAWN Multiple Processes in Unix

Hi, I have three files in my IN directory.Each file should be copied 25 times using for loop.Each file processing should run in parallel?How to spawn multiple processes in unix?Any help would be appreciated. Thanks, Liyakath (7 Replies)
Discussion started by: liyakathali
7 Replies

5. Shell Programming and Scripting

Using expect command, spawn will not start sftp process

Hi all, I have a script that runs sftp with expect so I can login and send a file in a cronjob. I've installed this on a couple other servers and it has been fine. However, this time on this machine, it seems to be giving me an issue. It won't move past the spawn sftp command and return a... (3 Replies)
Discussion started by: ltyrrell
3 Replies

6. Shell Programming and Scripting

File Transfer from Window server to UNIX and UNIX to UNIX

Dear All, Can someone help to command or program to transfer the file from windows to Unix server and from one unix server to another Unix server in secure way. I would request no samba client. (4 Replies)
Discussion started by: yadavricky
4 Replies

7. Red Hat

Spawn: Command not found

Hi all, I want to run the following command from my main prompt : # spawn bash but I get the following error: spawn: Command not found. For this to work , I first have to go into expect. #expect expect1.1>spawn bash spawn bash 564 expect1.2> Is there any way I can skip the... (2 Replies)
Discussion started by: Junaid Subhani
2 Replies

8. Red Hat

Spawn: command not found

Dear Concern, I want to run following script in RHEL 6.3. $ cat sftp_upload.sh #!/usr/bin/expect spawn sftp -oPort=434 bkashtopup@172.16.252.59 expect "*?assword:*" send "bkashtopup1234\n" send "lcd /BI/application/report/script/daily/daily_bkash_itopup_detail\r" expect sftp> ... (3 Replies)
Discussion started by: makauser
3 Replies

9. Shell Programming and Scripting

Spawn command not found!!!

Hi, I am writing a script to automate installation of java in shell script. #!/bin/sh #!/usr/bin/expect ls -la | grep jdk* | rpm -ivh ./jdk*.rpm alternatives --install /usr/bin/java java /usr/java/jdk1.7.0_71/bin/java 2 spawn alternatives --config java expect "Enter to keep the current... (5 Replies)
Discussion started by: boby.kumar
5 Replies

10. Shell Programming and Scripting

Spawn fatal do not run this command by hand

spawn ssh oracle@$myserver $mycommand match_max 100000 expect "*?assword:*" send "$v_password\r" send "\r" expect eof I run this code above and got the error. spawn: fatal: do not run this command by hand Thanks (3 Replies)
Discussion started by: zam
3 Replies
FBB::OFdStreambuf(3bobcat)			       File Descriptor Output Stream Buffer				FBB::OFdStreambuf(3bobcat)

NAME
FBB::OFdStreambuf - Output stream buffer initialized by a file descriptor SYNOPSIS
#include <bobcat/ofdstreambuf> Linking option: -lbobcat DESCRIPTION
FBB::OFdStreambuf objects may be used as a std::streambuf of std::ostream objects to allow insertions into a file descriptor. File descriptors are not defined within the context of C++, but they can be used on operating systems that support the concept. Realize that using file descriptors introduces operating system dependencies. NAMESPACE
FBB All constructors, members, operators and manipulators, mentioned in this man-page, are defined in the namespace FBB. INHERITS FROM
std::streambuf ENUMERATION
The public enumeration Mode defined in the class FBB::OFdStreamBuf has the following values: o CLOSE_FD, indicating that the file descriptor used by the object must be closed; o KEEP_FD (the default) indicating that the file descriptor used by the object must not be closed. CONSTRUCTORS
o OFdStreambuf(): This constructor initializes the streambuf, without associating it to a file descriptor, and without using buffering. The member open() can be used to associate the object later on with a file descriptor and optionally a buffer size. When the object is destroyed or if the mode-less overloaded version of the open member is called, the file descriptor will be closed. o OFdStreambuf(Mode mode): This constructor initializes the streambuf, without associating it to a file descriptor, and without using buffering. The member open() can be used to associate the object later on with a file descriptor and optionally a buffer size. When the object is destroyed or if the mode-less overloaded version of the open member is called, the Mode argument determines whether the file descriptor will be closed or will remain open. o OFdStreambuf(int fd, size_t n = 1): This constructor initializes the streambuf, associating it to file descriptor fd, and an optional unget buffer size (by default hav- ing size 1). When open is called subsequently, or if the object is destroyed the provided file descriptor will be closed. o OFdStreambuf(int fd, size_t n = 1): This constructor initializes the streambuf, associating it to file descriptor fd, and an optional unget buffer size (by default hav- ing size 1). When the object is destroyed or if the mode-less overloaded version of the open member is called, the file descriptor will be closed. o OFdStreambuf(int fd, Mode mode, size_t n = 1): This constructor initializes the streambuf, associating it to file descriptor fd, and an optional unget buffer size (by default hav- ing size 1). When the object is destroyed or if the mode-less overloaded version of the open member is called, the Mode argument determines whether the file descriptor will be closed or will remain open. There are no copy or move constructors. MEMBER FUNCTIONS
All members of std::streambuf are available, as FBB::OFdStreambuf inherits from this class. Some of the std::streambuf's member are over- ridden by FBB::OFdStreambuf, see below. o void close(): The file descriptor used by the OFdStreambuf is closed, irrespective of the Mode that was specified when the OFdStreambuf object was constructed. Following close the OFdStreambuf object can no longer be used until one of its open members has been called. o int fd() const: The file descriptor used by the OFdStreambuf object is returned. If the OFdStreambuf is not associated with a file descriptor -1 is returned. o void open(int xfd, size_t n = 1): The streambuf is (re)initialized, using file descriptor fd, and an optional unget buffer size (by default having size 1). When called repeatedly, the Mode specification used whem the object was constructed determines whether the file descriptor will be closed or will remain open. o void open(int xfd, Mode mode, size_t n = 1): The streambuf is (re)initialized, using file descriptor fd, a file descriptor closing parameter and an optional unget buffer size (by default having size 1). Depending on the Mode argument the object's currently used file descriptor will be closed or will remain open when the IFdStreambuf object is destroyed. The overloaded assignment operator is not available. PROTECTED MEMBER FUNCTION
The member listed in this section implements the tasks of the comparably named virtual function in the class's private interface. This sep- arates the redefinable interface from the user-interface. The class OFdStreambuf can, in accordance with Liskov's Substitution Principle, be used as a std:streambuf; but it also offers a facility for classes deriving from OFdStreambuf. This facility is listed here. o int pSync(): The contents of the OFdStreambuf's internal buffer flushed. EXAMPLE
To do FILES
bobcat/ofdstreambuf - defines the class interface SEE ALSO
bobcat(7), ifdstreambuf(3bobcat), ofdstream(3bobcat), std::streambuf BUGS
None reported DISTRIBUTION FILES
o bobcat_3.01.00-x.dsc: detached signature; o bobcat_3.01.00-x.tar.gz: source archive; o bobcat_3.01.00-x_i386.changes: change log; o libbobcat1_3.01.00-x_*.deb: debian package holding the libraries; o libbobcat1-dev_3.01.00-x_*.deb: debian package holding the libraries, headers and manual pages; o http://sourceforge.net/projects/bobcat: public archive location; BOBCAT
Bobcat is an acronym of `Brokken's Own Base Classes And Templates'. COPYRIGHT
This is free software, distributed under the terms of the GNU General Public License (GPL). AUTHOR
Frank B. Brokken (f.b.brokken@rug.nl). libbobcat1-dev_3.01.00-x.tar.gz 2005-2012 FBB::OFdStreambuf(3bobcat)
All times are GMT -4. The time now is 04:10 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy