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
ghextris(6) Games Manual ghextris(6)
NAME
ghextris - Hextris game for GNOME
SYNOPSIS
ghextris
DESCRIPTION
ghextris is a Python/GNOME reimplementation of the semi-free Xhextris by David Markley. The object of the game is basically the same as in
Tetris; use the pieces that fall down from the top of the game area to construct fully filled lines, which will then disappear to make room
for more pieces. The twist, as first introduced by Markley, is that the pieces are composed of hexagonal blocks, so your visualization
skills will get an extra workout.
RULES
The pieces can be moved left and right with the respective arrow keys and rotated with the up and down arrow keys. If you're satisfied with
where a piece is going, it can be dropped by pressing the space bar. Fully formed lines will disappear from the playing field. The game
will end when the pile of pieces reaches the top of the game area.
Score
You get 1 point for every line that you drop a piece, and 100, 200, 400 or 800 points for 1, 2, 3 or 4 simultaneously destroyed lines,
respectively.
AUTHOR
Mikko Rauhala <mjr@iki.fi>
COPYRIGHT
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MER-
CHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
X Version 11 May 20, 2004 ghextris(6)