11-25-2008
i get a bash:more: command not found error.
when i did which more it looked in the PATH variable. its strange that there is not $SHELL set in $PATH.
i am using cygwin not a machine with native unix. maybe its cygwin?
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi everyone,
I have a Linux OS in my PC (older version 9). Its default shell is bash. Whenever I try to run some Perl program it throws error ! eg, if I run this simple PERL program ,
#!/usr/bin/perl
printf "\lHello \n";
$var=3 ;
printf $var;
@list=(1,2,3);
printf "@list";... (6 Replies)
Discussion started by: adc22
6 Replies
2. UNIX for Dummies Questions & Answers
Hey all,
I need to know how many lines of C code are in a source bundle. I have extracted the bundle and hence there is a big directory tree with C files everywhere.
So far I have something like:
find . -name "*.c" | grep \ ./*/*/*/*/*/*
obviously wrong, if someone could help me out... (3 Replies)
Discussion started by: zigga15
3 Replies
3. Shell Programming and Scripting
Hi all. Suppose I have the following function in an executable file named "HOLA":
------------------------
function hola { echo "Hola ${@}."; }
------------------------
In addition, suppose that I want to execute the file so I can input my name next to ./HOLA. I mean,... (4 Replies)
Discussion started by: hresquivelo
4 Replies
4. Shell Programming and Scripting
I'm trying to set up an alias in .bash_aliases to show just the filenames of the files in a directory, which the following command will do:
ls -l | grep ^- | awk '{print $NF}'
kjb.zip
ap.zip
tor.zip
However when I set up the following alias in .bash_aliases:
alias lf="ls -l | grep ^- |... (16 Replies)
Discussion started by: gencon
16 Replies
5. UNIX for Dummies Questions & Answers
Hello all,
Something strange going on with a shell script I'm writing. It's trying to write a list of files that it finds in a given directory to another file. But I also have a skip list so matching files that are in that skip list should be, well uhm, skipped :)
Here's the code of my... (2 Replies)
Discussion started by: StijnV
2 Replies
6. UNIX for Dummies Questions & Answers
I have simple script. like that, I am working on /usr/local/src and also under src folder there is a ft folder
#!/bin/ksh
#!/bin/bash
dirpath="/usr/local/src/ft"
echo $dirpath
cd $dirpath
echo displays ok "/usr/local/src/ft"
but that doesn't enter "ft" folder. stays in current... (4 Replies)
Discussion started by: F@NTOM
4 Replies
7. Shell Programming and Scripting
why, when i run my shell with sh command it run without problem, but when run with nohup nombreshell.sh $ command not run correctly... values obtained from database are not displayed in the csv file.
My shell do that:
1° data base access with sqlplus:
read_sql_stmt() {
typeset stmt=$1... (3 Replies)
Discussion started by: joaco
3 Replies
8. UNIX for Dummies Questions & Answers
Hi All,
i created the below script to move file with xml extension from one directory to another,but the mv command is not working inside the shell script,
#!/us/bin/ksh
filepath="/apps/extract"
filename="*.xml"
foldername=2191POB000_$(date +%Y%m%d%H%M%S)
mkdir -p "$filepath/$foldername"... (3 Replies)
Discussion started by: Radhas
3 Replies
9. UNIX for Dummies Questions & Answers
Options::
A)$shell
B)echo $ bash
C)echo $ O
D)$ O (1 Reply)
Discussion started by: raghugowda
1 Replies
10. Programming
I want copy Files:
But cp don't work:
shell_exec("cp ".$pfad." ".$genzone);
shell_exec("cp ../Chrysanthemum.jpg ../test");
Whats wrong? (3 Replies)
Discussion started by: Linuxmann
3 Replies
LEARN ABOUT DEBIAN
xpamethod
xpamethod(7) SAORD Documentation xpamethod(7)
NAME
XPAMethod - XPA Communication Methods
SYNOPSIS
XPA supports both inet and unix (local) socket communication.
DESCRIPTION
XPA uses sockets for communication between processes. It supports three methods of socket communication: inet, localhost, and unix. In gen-
eral, the same method should be employed for all XPA processes in a session and the global environment variable XPA_METHOD should be used
to set up the desired method. By default, the preferred method is "inet", which is appropriate for most users. You can set up a different
method by typing something like:
setenv XPA_METHOD local # unix csh
XPA_METHOD=local; export XPA_METHOD # unix sh, bash, windows/cygwin
set XPA_METHOD=localhost # dos/windows
The options for XPA_METHOD are: inet, unix (or local), and localhost. On Unix machines, this environment setup command can be placed in
your shell init file (.cshrc, .profile, .bashrc, etc.) On Windows platforms, it can be placed in your AUTOEXEC.BAT file (I think!).
By default, inet sockets are used by XPA. These are the standard Internet sockets that are used by programs such as Netscape, ftp. etc.
Inet sockets utilize the IP address of the given machine and a (usually random) port number to communicate between processes on the same
machine or between different machines on the Internet. (Note that XPA has an Access Control mechanism to prevent unauthorized access of XPA
access points by other computers on the Net). For users connected to the Internet, this usually is the appropriate communication method.
For more information about setting up XPA communication between machines, see Communication Between Machines.
In you are using XPA on a machine without an Internet connection, then inet sockets are not appropriate. In fact, an XPA process often will
hang for many seconds while waiting for a response from the Domain Name Service (DNS) when using inet sockets. Instead of inet sockets,
users on Unix platforms can also use unix sockets (also known as local sockets). These sockets are based on the local file system and do
not make use of the DNS. They generally are considered to be faster than inet sockets, but they are not implemented under Windows. Use
local sockets as a first resort if you are on a Unix machine that is not connected to the Internet.
Users not connected to the Internet also can use localhost sockets. These are also inet-type sockets but the IP address used for the local
machine is the localhost address, 0x7F000001, instead of the real IP of the machine. Depending on how sockets are set up for a given plat-
form, communication with the DNS usually is not required in this case (though of course, XPA cannot interact with other machines). The
localhost method will generally work on both Unix and Windows platforms, but whether the DNS is required or not is subject to individual
configurations.
A final warning/reminder: if your XPA-enabled server hangs at startup time and your XPA_METHOD is inet, the problem probably is related to
an incorrect Internet configuration. This can be confirmed by using the unix method or (usually) the localhost method. You can use these
alternate methods if other hosts do not need access to the XPA server.
SEE ALSO
See xpa(7) for a list of XPA help pages
version 2.1.14 June 7, 2012 xpamethod(7)