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
ARCHPATH(1) General Commands Manual ARCHPATH(1)
NAME
archpath - output arch (tla/Bazaar) archive names, with support for branches
SYNOPSIS
archpath
archpath branch
archpath branch--version
DESCRIPTION
archpath is intended to be run in an arch (tla or Bazaar) working copy.
In its simplest usage, archpath with no parameters outputs the package name (archive/category--branch--version) associated with the working
copy.
If a parameter is given, it may either be a branch--version, in which case archpath will output a corresponding package name in the current
archive and category, or a plain branch name (without '--"), in which case archpath will output a corresponding package name in the current
archive and category and with the same version as the current working copy.
This is useful for branching. For example, if you're using Bazaar and you want to create a branch for a new feature, you might use a com-
mand like this:
baz branch $(archpath) $(archpath new-feature)
Or if you want to tag your current code onto a 'releases' branch as version 1.0, you might use a command like this:
baz branch $(archpath) $(archpath releases--1.0)
That's much easier than using 'baz tree-version' to look up the package name and manually modifying the result.
AUTHOR
archpath was written by Colin Watson <cjwatson@debian.org>. Like archpath, this manual page is released under the GNU General Public
License, version 2 or later.
DEBIAN
Debian Utilities ARCHPATH(1)