02-11-2002
Thanks I got it.
Thanks a lot. I got it's value by using echo $PROD .
I think it was a environment variable set by administrator.
Once again thanks for your help.
Regards
Ashish Malviya
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
We keep getting production files into an input directory.
These files will be processed three times a day.
8:00AM
1:30PM
5:30PM
file1.20041005_05303423.dat
File2.200041005_14232313.dat
Once the files are processed, they are archived immediately to prod/archive directory
... (1 Reply)
Discussion started by: zomboo
1 Replies
2. Shell Programming and Scripting
how should represent euro sign "€" in Unix (1 Reply)
Discussion started by: akash
1 Replies
3. Programming
Hi
Is there any specific way to FTP a C executable from DEV to PROD. We recently changed a C program compiled in DEV, created EXE and tested fine. But when we moved the EXE to PROD. It did not work. We have tried restarting the sever too. Once we put back the old Exe it starts to work again. The... (1 Reply)
Discussion started by: rainbow29
1 Replies
4. AIX
Hi,
I am getting -805 error when i tried accessing TEST DB from PROD environment in AIX UNIX. Could anyone help me in this regard.
Thx,
Satish (1 Reply)
Discussion started by: satishstar2
1 Replies
5. UNIX for Dummies Questions & Answers
ls -l generates something like...
-rwxr-xr-x 1 root root 19304 Jan 21 2009 true
-rwsr-xr-x 1 root root 40208 Jan 21 2009 umount
-rwxr-xr-x 1 root root 22336 Jan 21 2009 uname
-rwxr-xr-x 1 root root 1273 Jan 21 2009 unicode_start
-rwxr-xr-x 1 root root 79 Jan 21 2009... (3 Replies)
Discussion started by: MykC
3 Replies
6. UNIX for Dummies Questions & Answers
What does $ represent in command prompt? (2 Replies)
Discussion started by: ashok.g
2 Replies
7. Shell Programming and Scripting
Hi
I have this check in file for replacing text in unix .This code use to work in linux but stopped working when we moved to unix.
cat xyz.dat | awk '/\x07/{sub(/\"/,"")};{print}'|awk '/\x07/{sub(/\"\,\"/,"\x07")};{print}'|awk '/\x07/{sub(/\"\,\"/,"\x07")};{print}'|awk... (5 Replies)
Discussion started by: er_zeeshan05
5 Replies
8. Red Hat
Hi,
I am currently building out a new production environment. Our current prod env uses RHEL5.8 but I am thinking of building out a RHEL6 environment since a complete end-to-end testing will need to take place prior to go-live anyway. Plus it is an ideal time to upgrade the OS across the... (4 Replies)
Discussion started by: Duffs22
4 Replies
9. Shell Programming and Scripting
Need to implement new CRON job or modify the existing one in MDM PROD in coming days, which will send email of SQL statement running from past 1 minute.Currently there is one CRON job in PROD, which send below email.
there is one cron job which send email, when there is long running... (0 Replies)
Discussion started by: dampu
0 Replies
10. Shell Programming and Scripting
Hi All,
In UNIX servers we are switching from DR to PROD. After switching to DR
we need to update some configuration files which contains the server names.
Ex - If we switch to BCP we need to update BCP server name.
If we switch back to PROD we need to update PROD server name.
I... (1 Reply)
Discussion started by: Girish19
1 Replies
ECHO(3) 1 ECHO(3)
echo - Output one or more strings
SYNOPSIS
void echo (string $arg1, [string $...])
DESCRIPTION
Outputs all parameters.
echo is not actually a function (it is a language construct), so you are not required to use parentheses with it. echo (unlike some other
language constructs) does not behave like a function, so it cannot always be used in the context of a function. Additionally, if you want
to pass more than one parameter to echo, the parameters must not be enclosed within parentheses.
echo also has a shortcut syntax, where you can immediately follow the opening tag with an equals sign. Prior to PHP 5.4.0, this short syn-
tax only works with the short_open_tag configuration setting enabled.
I have <?=$foo?> foo.
PARAMETERS
o $arg1
- The parameter to output.
o $...
-
RETURN VALUES
No value is returned.
EXAMPLES
Example #1
echo examples
<?php
echo "Hello World";
echo "This spans
multiple lines. The newlines will be
output as well";
echo "This spans
multiple lines. The newlines will be
output as well.";
echo "Escaping characters is done "Like this".";
// You can use variables inside of an echo statement
$foo = "foobar";
$bar = "barbaz";
echo "foo is $foo"; // foo is foobar
// You can also use arrays
$baz = array("value" => "foo");
echo "this is {$baz['value']} !"; // this is foo !
// Using single quotes will print the variable name, not the value
echo 'foo is $foo'; // foo is $foo
// If you are not using any other characters, you can just echo variables
echo $foo; // foobar
echo $foo,$bar; // foobarbarbaz
// Some people prefer passing multiple parameters to echo over concatenation.
echo 'This ', 'string ', 'was ', 'made ', 'with multiple parameters.', chr(10);
echo 'This ' . 'string ' . 'was ' . 'made ' . 'with concatenation.' . "
";
echo <<<END
This uses the "here document" syntax to output
multiple lines with $variable interpolation. Note
that the here document terminator must appear on a
line with just a semicolon. no extra whitespace!
END;
// Because echo does not behave like a function, the following code is invalid.
($some_var) ? echo 'true' : echo 'false';
// However, the following examples will work:
($some_var) ? print 'true' : print 'false'; // print is also a construct, but
// it behaves like a function, so
// it may be used in this context.
echo $some_var ? 'true': 'false'; // changing the statement around
?>
NOTES
Note
Because this is a language construct and not a function, it cannot be called using variable functions.
SEE ALSO
print(3), printf(3), flush(3), Heredoc syntax.
PHP Documentation Group ECHO(3)