9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi All,
I have below script which is just trying to sftp transfer a file to another server with 'expect' option.
I have expect installed on the instance.
Below is the script:
#!/usr/bin/expect
spawn sftp oracle@<HOST>
expect "password:"
send "<mypassword>\n"
expect "sftp>"... (6 Replies)
Discussion started by: festerbg
6 Replies
2. Shell Programming and Scripting
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
3. Red Hat
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
4. Shell Programming and Scripting
Hi,
I have a problem with the spawn execution with expect.. i have done the code for expect in a separate file and i am calling the this execution from the bash script.. as given below..
-bash-4.1$ cat main.sh
#!/usr/bin/bash
./spawn.exp
==========================
-bash-4.1$ cat... (2 Replies)
Discussion started by: satishkumar432
2 Replies
5. UNIX for Advanced & Expert Users
what is diffenrence between spawn and fork ?
"fork() system call spawns the processess" what is mean by this sentence. (1 Reply)
Discussion started by: anandgodse
1 Replies
6. Shell Programming and Scripting
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
7. Programming
Hello Everyone:
I have the following code
int main()
{
system("/usr/OtherUser/bin/runX");
return 0;
}
runX must be executed with privileges from another user, how could I do that? I know the password for such user.
Thanks in advance (8 Replies)
Discussion started by: edgarvm
8 Replies
8. Solaris
I need to run the spawn command but when I typed it in, I got
"ksh: spawn: not found".
So, I downloaded spawn-fcgi but it required to be compiled first. The compile failed when I tried it. I need a copy that's ready to be used.
Unix system info:
OS: Sun Solaris 2.8
Shell: ksh
Does... (4 Replies)
Discussion started by: april
4 Replies
9. UNIX for Dummies Questions & Answers
Hi,
I'm very new to UNIX.
I need to FTP a file to a remote host. It happens through a port 2222.I need to automate the process as the SCP command prompts for a password.
1) The regular ftp, tells me that the connection is refused
2) The sftp login@remotehost
gives me... (0 Replies)
Discussion started by: sandy.cog
0 Replies
WildMidi_Close(3) WildMidi Programmer's Manual WildMidi_Close(3)
NAME
WildMidi_Close - Close an open midi handle
LIBRARY
libWildMidi
SYNOPSIS
#include <wildmidi_lib.h>
int WildMidi_Close (midi *handle)
DESCRIPTION
Finish processing MIDI data or file.
handle The indentifier obtained from opening a midi file with WildMidi_Open(3) or WildMidi_OpenBuffer(3)
RETURN VALUE
returns -1 on error, otherwise returns 0
SEE ALSO
WildMidi_GetString(3), WildMidi_Init(3), WildMidi_MasterVolume(3), WildMidi_Open(3), WildMidi_OpenBuffer(3), WildMidi_SetOption(3), Wild-
Midi_GetOutput(3), WildMidi_GetInfo(3), WildMidi_FastSeek(3), WildMidi_Shutdown(3), wildmidi(1), wildmidi.cfg(5)
AUTHOR
Chris Ison <wildcode@users.sourceforge.net>
COPYRIGHT
Copyright (C) Chris Ison 2001-2010
This file is part of WildMIDI.
WildMIDI is free software: you can redistribute and/or modify the player under the terms of the GNU General Public License and you can
redistribute and/or modify the library under the terms of the GNU Lesser General Public License as published by the Free Software Founda-
tion, either version 3 of the licenses, or(at your option) any later version.
WildMIDI is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License and the GNU Lesser General Public License for more details.
You should have received a copy of the GNU General Public License and the GNU Lesser General Public License along with WildMIDI. If not,
see <http://www.gnu.org/licenses/>.
This manpage is licensed under the Creative Commons Attribution-Share Alike 3.0 Unported License. To view a copy of this license, visit
http://creativecommons.org/licenses/by-sa/3.0/ or send a letter to Creative Commons, 171 Second Street, Suite 300, San Francisco, Califor-
nia, 94105, USA.
05 June 2010 WildMidi_Close(3)