04-15-2010
It's because expect doesn't understand shell commands, and you can't just mix an match them as you like within the same script.
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
In the following code
a=
echo $?
echo $?
Why the op is (2 Replies)
Discussion started by: lipun4u
2 Replies
2. Shell Programming and Scripting
#! /bin/csh
set pattern = ""
set deli = |
foreach i ( `cat pattern`)
set pattern = "$pattern$deli$i"
end
all i want to accomplish is create a string a|b|c, but instead I got an invalid null command error,
thanks for your help (1 Reply)
Discussion started by: jdsignature88
1 Replies
3. Shell Programming and Scripting
when i am executing the script i am getting ?Invalid command though the script is right.
Could any one please let me know how to overcome this problem. Urgent Please
Thanks a lot in advance (2 Replies)
Discussion started by: Olivia
2 Replies
4. Web Development
I have Apache v2.0.63 on Solaris 10 (x86 on VM). While starting the apache server, facing the following exception -
Invalid command 'Order', perhaps misspelled or defined by a module not included in the server configuration
Googling says to add the entry LoadModule authz_host_module... (0 Replies)
Discussion started by: poga
0 Replies
5. Shell Programming and Scripting
I'm trying to execute something like this:
exec perl -i -pe 's/\015/\012/g' '${file}'
in my expect script and I get:
error "invalid command name \"perl\".
however, if I run
perl -i -pe 's/\015/\012/g' "/Users/Shared/menu-items.txt"
directly in my terminal, it runs fine. I'm an... (4 Replies)
Discussion started by: dpouliot
4 Replies
6. Shell Programming and Scripting
Hi All,
OS - Linux
I wrote a ftp program to download a file. the file is downloading successfully, but a negative message is prompting.
i placed set -vx in code to trace.
#!/usr/bin/ksh
set -vx
st_date=$(date)
Logfile=/home/user/ftp_dwnload.$st_date.log
cd /home/usr/data/
print... (1 Reply)
Discussion started by: nag_sathi
1 Replies
7. Shell Programming and Scripting
Hi,
I have this script which gives me output as Invalid null command
set recent_file=`grep '^-.*xlsx$' $FTP_LOG |\
sed -e 's/Jan/1/g' \
-e 's/Feb/2/g' \
-e 's/Mar/3/g' \
-e... (6 Replies)
Discussion started by: juzz4fun
6 Replies
8. Shell Programming and Scripting
My question is how would i loop a read command to keep asking the user for input and eventually print the no. of valid invalid inputs after a specified control input typed i.e. (-3). (1 Reply)
Discussion started by: Flowoftruth
1 Replies
9. Solaris
Hi there,
In Solaris 8.
I have accidentally set the eeprom security-mode=command because I followed the CIS benchmark guideline. Initally, it was eeprom security-mode=none. I have tried to login with the correct password numerous time and it still say permission denied.
I have tried to login... (4 Replies)
Discussion started by: alvinoo
4 Replies
shells(4) File Formats shells(4)
NAME
shells - shell database
SYNOPSIS
/etc/shells
DESCRIPTION
The shells file contains a list of the shells on the system. Applications use this file to determine whether a shell is valid. See getuser-
shell(3C). For each shell a single line should be present, consisting of the shell's path, relative to root.
A hash mark (#) indicates the beginning of a comment; subsequent characters up to the end of the line are not interpreted by the routines
which search the file. Blank lines are also ignored.
The following default shells are used by utilities: /bin/bash, /bin/csh, /bin/jsh, /bin/ksh, /bin/pfcsh, /bin/pfksh, /bin/pfsh, /bin/sh,
/bin/tcsh, /bin/zsh, /sbin/jsh, /sbin/sh, /usr/bin/bash, /usr/bin/csh, /usr/bin/jsh, /usr/bin/ksh, /usr/bin/pfcsh, /usr/bin/pfksh,
/usr/bin/pfsh, and /usr/bin/sh, /usr/bin/tcsh, /usr/bin/zsh. Note that /etc/shells overrides the default list.
Invalid shells in /etc/shells may cause unexpected behavior (such as being unable to log in by way of ftp(1)).
FILES
/etc/shells lists shells on system
SEE ALSO
vipw(1B), ftpd(1M), sendmail(1M), getusershell(3C), aliases(4)
SunOS 5.10 4 Jun 2001 shells(4)