Please put your code INSIDE the [code] [/code] block.
When i try to execute this the case l,f,c and s donot execute corresponding scripts... only case Q works fine... All other scripts are executed when directly run from command prompt... What am i missing?
Last edited by Corona688; 07-15-2013 at 04:29 PM..
Hi
All,
I have oracle 9i and 10g on unix. now i have 920.env and 1020.en file to set p respective enviornment.
when I excecute this commnad
. $HOME/920.env from the shell prompt it is working fine. and also same for 1020.env .
Now same command . $HOME/920.env i am putting in shell... (2 Replies)
Trying to figure out why this works:
printpwd.pl
#!/usr/bin/perl
use CGI::Carp qw( fatalsToBrowser );
print "Content-type: text/html\n\n";
$A = system("pwd");
$A = `pwd`;
print "$A\n";
^^actually that works/breaks if that makes any sense.. i get the working directory twice but when... (5 Replies)
Hi All,
I have writtern a shell script which has a sql query. I want to send the results of sql query to a shared area over a network.I also want to log the errors in a log file if the text file is not sent to shared area.
The results of sql query are spooled in TEMPFILE.
LOGFILE... (1 Reply)
i wrote a shell program in Home Directory.
and i changed to other directory.
i want to try to execute shell script in Other Dir.
it is not executed.
how can i make this script to execute in other directory also??
Thanks,
Arun (11 Replies)
Shell Scipt: temp.sh
su - <$username>
expect pass.exp
Expect script: pass.exp
#!/usr/bin/expect -f
# Login
#######################
expect "Password: " send "<$password>\r"
it comes up with Password: but doesnt take password passed throguh file. (2 Replies)
Dear All,
I have script.
Dest=""
IFS='
'
for translation in $(echo $MY_MAP)
do
t1=$(echo $translation | cut -d"=" -f1)
t2=$(echo $translation | cut -d"=" -f2| cut -d"," -f1)
if
then
Dest=$UNX/$u_product_path/$u_study_path/$UNXTR/$t2
break;
... (4 Replies)
Hi Guys,
I have one installer shell script which normally get from the dev team to install the app and it works fine for years (in IAX) the same installer/script iam trying to run in Linux 7.2 but it stuck somewhere which I cannot debug, can you help me to point out where it stuck .
here is the... (9 Replies)
Student just starting to learn shell script
I have file named
smallFile
John:Doe:ECE:3.54:doe@jd.home.org:111.222.3333
James:Davis:ECE:3.71:davis@jd.work.org:111.222.1111
Al:Davis:CS:2.63:davis@a.lakers.org:111.222.2222
Ahmad:Rashid:MBA:3.74:ahmad@mba.org:111.222.4444... (2 Replies)
Discussion started by: jetoutant
2 Replies
LEARN ABOUT FREEBSD
clear
TPUT(1) BSD General Commands Manual TPUT(1)NAME
tput, clear -- terminal capability interface
SYNOPSIS
tput [-T term] attribute ...
clear
DESCRIPTION
The tput utility makes terminal-dependent information available to users or shell applications. When invoked as the clear utility, the
screen will be cleared as if
tput clear
had been executed. The options to tput are as follows:
-T The terminal name as specified in the termcap(5) database, for example, ``vt100'' or ``xterm''. If not specified, tput retrieves the
``TERM'' variable from the environment.
The tput utility outputs a string for each attribute that is of type string; a number for each of type integer. Otherwise, tput exits 0 if
the terminal has the capability and 1 if it does not, without further action.
If an attribute is of type string, and takes arguments (e.g. cursor movement, the termcap ``cm'' sequence) the arguments are taken from the
command line immediately following the attribute.
The following special attributes are available:
clear Clear the screen (the termcap(5) ``cl'' sequence).
init Initialize the terminal (the termcap(5) ``is'' sequence).
longname Print the descriptive name of the user's terminal type.
reset Reset the terminal (the termcap(5) ``rs'' sequence).
EXIT STATUS
The exit status of tput is as follows:
0 If the last attribute attribute argument is of type string or integer, its value was successfully written to standard output. If the
argument is of type boolean, the terminal has this attribute.
1 This terminal does not have the specified boolean attribute.
2 Usage error.
3 No information is available about the specified terminal type.
SEE ALSO termcap(5), terminfo(5)STANDARDS
The tput utility conforms to IEEE Std 1003.1-2001 (``POSIX.1'').
HISTORY
The tput utility appeared in 4.4BSD.
BUGS
The tput utility cannot really distinguish between different types of attributes.
Some termcap entries depend upon having a '%' in them that is just a '%' and nothing more. Right now we just warn about them if they do not
have a valid type declaration. These warnings are sent to stderr.
BSD June 15, 2002 BSD