02-22-2013
How are you setting x_oug?
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I have a variable that is outputting a lot of space.
here has been 45 lines returned ...
how can I remove the spaces between the "been and the 45"
CODE:
fil_len=`wc -l < coshb.txt`
if ; then
cat coshb.txt | more
echo " "
echo "There has been ${fil_len} lines... (4 Replies)
Discussion started by: jagannatha
4 Replies
2. Shell Programming and Scripting
hi
I have say five variable.
I would ask the user which one they want me to print and then print accordingly.
TEST_1='10.2.3.4'
TEST_2='11.2.3.5'
TEST_3='12.2.3.5'
TEST_4='13.2.3.5'
TEST_5='14.2.3.5'
print_var()
{
echo "Accessing var num $1"
echo TEST$1
#??? But How do... (6 Replies)
Discussion started by: sabina
6 Replies
3. Shell Programming and Scripting
I am modifying an existing script and it has the following line:
export SomeEnvVar=`echo ${SomeLocalVar}`
Why wouldn't it just read:
export SomeEnvVar=${SomeLocalVar}
Is there some reason to use echo instead of a direct assignment? :confused: (2 Replies)
Discussion started by: shellburger
2 Replies
4. Shell Programming and Scripting
Hi ,
I have a peculiar problem.
i have an if block like this
if ;
then
echo " todays date is " ${date} >> log_file
echo " file count is " $ count >> log_file
mv filename1 filename 2
else
echo "no files available ">> log_file
fi
the echo statement "no files available " is not... (2 Replies)
Discussion started by: wizardofoz
2 Replies
5. Shell Programming and Scripting
Hi,
i want to create an user-friendly script where you are asked for two numbers. i would like that these two number to be separated with "--" for example, but i can't figure out how to do this.
for example
read -p "Insert lowest and highest value: " min ; echo -n "-- "; read max
so... (3 Replies)
Discussion started by: ezitoc
3 Replies
6. Shell Programming and Scripting
hi ,
While running my script individually the variable is working fine. But when i am running the same script from cron job it's displaying nothing. Can any one comment on this. (4 Replies)
Discussion started by: josephroyal
4 Replies
7. Shell Programming and Scripting
hi,
I have some problems in my simple script about the redirect echo stdout command inside a condition. Why is the echo command inside the elif still execute in the else command
Here are my simple script
After check on the two diff output the echo stdout redirect is present in two diff... (3 Replies)
Discussion started by: jao_madn
3 Replies
8. Shell Programming and Scripting
#!/bin/bash
varA="AAA1"
varB="BBB2"
varC="CCC3"
for proccx in $varA $varB $varC
do
echo "the current name is ????? , the value is $proccx"
echo " "
done
#end of script
I want the output to look something like this:
the current name is varA, the value is AAA1
the current name is... (5 Replies)
Discussion started by: ajp7701
5 Replies
9. UNIX for Dummies Questions & Answers
Hello,
How can i display the below ... say
echo "Start \n Analyse \n ~/temp/input.txt \nStop"
Now my output should look like below
Start
Analyse
This is from input file
Stop
I tried echo "Start \n Analyse \n $var \nStop where $var = "~/temp/input.txt".. It did not work out..... (3 Replies)
Discussion started by: sathyaonnuix
3 Replies
10. UNIX for Beginners Questions & Answers
Hi
Newbie here with first post. I've got a shell script (ksh) whereby I run a SQL*Plus script and output the results to a file. I then check the output file in an if statement that looks like this:
if ]; then
export GAPNUM=`awk '{print $4}' $OUTFILE`
if ] then
mailx -s... (10 Replies)
Discussion started by: ltzwoman
10 Replies
LEARN ABOUT PHP
sqlsrv_configure
SQLSRV_CONFIGURE(3) SQLSRV_CONFIGURE(3)
sqlsrv_configure - Changes the driver error handling and logging configurations
SYNOPSIS
bool sqlsrv_configure (string $setting, mixed $value)
DESCRIPTION
Changes the driver error handling and logging configurations.
PARAMETERS
o $setting
- The name of the setting to set. The possible values are "WarningsReturnAsErrors", "LogSubsystems", and "LogSeverity".
o $value
- The value of the specified setting. The following table shows possible values:
Error and Logging Setting Options
+-----------------------+---------------------------------------------------+
| Setting | |
| | |
| | Options |
| | |
+-----------------------+---------------------------------------------------+
|WarningsReturnAsErrors | |
| | |
| | 1 ( TRUE) or 0 ( FALSE) |
| | |
| LogSubsystems | |
| | |
| | SQLSRV_LOG_SYSTEM_ALL (-1) SQLSRV_LOG_SYSTEM_CONN |
| | (2) SQLSRV_LOG_SYSTEM_INIT (1) SQLSRV_LOG_SYS- |
| | TEM_OFF (0) SQLSRV_LOG_SYSTEM_STMT (4) SQL- |
| | SRV_LOG_SYSTEM_UTIL (8) |
| | |
| LogSeverity | |
| | |
| | SQLSRV_LOG_SEVERITY_ALL (-1) SQLSRV_LOG_SEVER- |
| | ITY_ERROR (1) SQLSRV_LOG_SEVERITY_NOTICE (4) SQL- |
| | SRV_LOG_SEVERITY_WARNING (2) |
| | |
+-----------------------+---------------------------------------------------+
RETURN VALUES
Returns TRUE on success or FALSE on failure.
SEE ALSO
SQLSRV Error Handling., Logging SQLSRV Activity..
PHP Documentation Group SQLSRV_CONFIGURE(3)