[ c o d e ]
for a in something; do
echo something else
done
[ / c o d e ]
If you now remove all blanks in [ c o d e ] and [ / c o d e ] the forum will be able to substitute it as bulletin board tags and you will have the following:
Im Sorry to bother you guys butim totally new to Unix, so pls help me out if you can. This could be a silly question.
I wanna run the command "ps" in script, but how should I be able to do so? Actually I have made a menu for the user to choose from...for example
1. Show all processes
2.... (1 Reply)
Hello ;
I have a script myscript.sh. If I type at prompt
myscript.sh
I will receive
ksh: myscript.sh: not found
but if I type
./myscript.sh
it works .
What should I do to be able to run myscript just typing
myscript.sh
Many thanks before. (1 Reply)
I need to execute a shell script kept in unix machine from windows. User id, password area available.
For eg.
There's a shell script wich moves all the logs kept in my home directory to a directory named LOGS.
Now i need to get this done through windows; either using a batch file, or java... (4 Replies)
Hi,
I have a script get_DB_var.ksh which do a data base call and get some variables as below:
sqlplus -silent $user/$pass@dbname <<END
select col1,
col2,
col3
from table_name where col4=$1;
exit;
END
Now I want to access all these variables i.e.... (9 Replies)
Dear All,
I have a script on my USB and I want to execute it on set of files when I connect via ssh on the server ...
I'm not able to define the path of the script located in the USB ... how can I use this script without copying/moving it into the directory I'm working on in the ssh mode ....... (6 Replies)
Hello,
I wasn't sure where to post this so I posted it here. I've used UNIX quite a bit, LINUX not so much. For some reason, my LINUX script will not execute if I type in the script name and press enter. I'm in the directory where the script is.
test.sh
However, when I use ". ./" it... (5 Replies)
Hi i wrote a script which dosent exists after executing any help
#!/bin/bash
netstat -ptlen | grep 10000
if ; then
echo "Hive Thrift server is running"
exit 0
else
echo "Hive Thrift server is down Trying to Bring up the service" | mail -s "ALERT" team@domain.com
`nohup hive... (7 Replies)
Hi,
I am new to UNIX and want to execute oracle script from unix script.
I have written below script but i am getting below error.
#!/bin/bash
file="/home/usr/control/control_file1"
while read line
do
#$line=@$line
#echo $line
sqlplus tiger/scott@DB
@$line
exit
#echo "$line"
done... (3 Replies)
Discussion started by: vipin kumar rai
3 Replies
LEARN ABOUT HPUX
echo
echo(1) General Commands Manual echo(1)NAME
echo - echo (print) arguments
SYNOPSIS
[arg] ...
DESCRIPTION
writes its arguments separated by blanks and terminated by a new-line on the standard output. It also understands C-like escape conven-
tions; beware of conflicts with the shell's use of
write an alert character
backspace
print line without appending a new-line
form-feed
new-line
carriage return
tab
vertical tab
backslash
the 8-bit character whose
ASCII code is the 1-, 2-, 3- or 4-digit octal number n, whose first character must be a zero.
write an 8-bit value that is the zero-, one-, two- or three-digit octal number
num
is useful for producing diagnostics in command files and for sending known data into a pipe.
Notes
Berkeley differs from this implementation. The former does not implement the backslash escapes. However, the semantics of the escape can
be obtained by using the option. The echo command implemented as a built-in function of follows the Berkeley semantics (see csh(1)).
EXTERNAL INFLUENCES
Environment Variables
determines the interpretation of arg as single and/or multi-byte characters.
If is not specified in the environment or is set to the empty string, the value of is used as a default for each unspecified or empty vari-
able. If is not specified or is set to the empty string, a default of "C" (see lang(5)) is used instead of If any internationalization
variable contains an invalid setting, behaves as if all internationalization variables are set to "C". See environ(5).
International Code Set Support
Single- and multi-byte character code sets are supported.
AUTHOR
was developed by OSF and HP.
SEE ALSO sh(1).
BUGS
No characters are printed after the first This is not normally a problem.
STANDARDS CONFORMANCE echo(1)