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
LEARN ABOUT PHP
php_uname
PHP_UNAME(3) 1 PHP_UNAME(3)
php_uname - Returns information about the operating system PHP is running on
SYNOPSIS
string php_uname ([string $mode = "a"])
DESCRIPTION
php_uname(3) returns a description of the operating system PHP is running on. This is the same string you see at the very top of the
phpinfo(3) output. For the name of just the operating system, consider using the PHP_OS constant, but keep in mind this constant will con-
tain the operating system PHP was built on.
On some older UNIX platforms, it may not be able to determine the current OS information in which case it will revert to displaying the OS
PHP was built on. This will only happen if your uname() library call either doesn't exist or doesn't work.
PARAMETERS
o $mode
-$mode is a single character that defines what information is returned:
o 'a': This is the default. Contains all modes in the sequence "s n r v m".
o 's': Operating system name. eg. FreeBSD.
o 'n': Host name. eg. localhost.example.com.
o 'r': Release name. eg. 5.1.2-RELEASE.
o 'v': Version information. Varies a lot between operating systems.
o 'm': Machine type. eg. i386.
RETURN VALUES
Returns the description, as a string.
EXAMPLES
Example #1
Some php_uname(3) examples
<?php
echo php_uname();
echo PHP_OS;
/* Some possible outputs:
Linux localhost 2.4.21-0.13mdk #1 Fri Mar 14 15:08:06 EST 2003 i686
Linux
FreeBSD localhost 3.2-RELEASE #15: Mon Dec 17 08:46:02 GMT 2001
FreeBSD
Windows NT XN1 5.1 build 2600
WINNT
*/
if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') {
echo 'This is a server using Windows!';
} else {
echo 'This is a server not using Windows!';
}
?>
There are also some related Predefined PHP constants that may come in handy, for example:
Example #2
A few OS related constant examples
<?php
// *nix
echo DIRECTORY_SEPARATOR; // /
echo PHP_SHLIB_SUFFIX; // so
echo PATH_SEPARATOR; // :
// Win*
echo DIRECTORY_SEPARATOR; //
echo PHP_SHLIB_SUFFIX; // dll
echo PATH_SEPARATOR; // ;
?>
SEE ALSO
phpversion(3), php_sapi_name(3), phpinfo(3).
PHP Documentation Group PHP_UNAME(3)