Sponsored Content
Full Discussion: URGENT HELP NEEDED
Top Forums Programming URGENT HELP NEEDED Post 302575210 by Scott on Monday 21st of November 2011 01:25:27 AM
Old 11-21-2011
Hello!

In case you forgot to read the forum rules, here is quick copy.

Quote:
RULES OF THE UNIX AND LINUX FORUMS


(1) No flames, shouting (all caps), sarcasm, bullying, profanity or arrogant posts.

(2) No negative comments about others or impolite remarks. Be patient.

(3) Refrain from idle chatter that does not contribute to the knowledge base. This does not apply to the forums in The Unix Lounge which are for off-topic discussions.

(4) Do not 'bump up' questions if they are not answered promptly. No duplicate or cross-posting and do not report a post or send a private message where your goal is to get an answer more quickly.

(5) Search the forums database with your keywords before asking.

(6) Do not post classroom or homework problems in the main forums. These most be posted in our Homework forum under special rules.

(7) No job postings from headhunters or recruiters except in The Unix Forums Job Board. See How to Post to The UNIX Forums Job Board for information on using the Job Board.

(8) No BSD vs. Linux vs. Windows or similar threads.

(9) Edit your posts if you see spelling or grammar errors (don't write in cyberchat or cyberpunk style). English only.

(10) Don't post your email address and ask for an email reply. Don't send a private message with a technical question. The forums are for the benefit of all, so all Q&A should take place in the forums.

(11) Post questions with descriptive subjects. For example, do not post questions with subjects like "Help Me!", "Urgent!!" or "Doubt". Post subjects like "Execution Problems with Cron" or "Help with Backup Shell Script".

(12) These are not hacker boards so hacker related posts will be promptly deleted or moderated.

(13) The forum administrators reserve the right to prune, move or edit posts that do not adhere to the rules or are technically inaccurate.

(14) The forum administrators reserve the right to remove users or change their posting status to read only without notice if any rules are not followed.

(15) No smoking in the forums.
Cheers.

The UNIX and Linux Forums

Last edited by Scott; 11-21-2011 at 08:44 AM.. Reason: Forgot to highlight rules
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

urgent help needed !!

i have a script, which is continuously looping. i want to view the script name when i use ps command... it is only showing -sh ... UID PID PPID C STIME TTY TIME COMMAND informix 8533 20923 0 18:19:28 pts/ta 0:00 -sh but i dont have my scriptname displayed .... how can i do that my script is... (0 Replies)
Discussion started by: guhas
0 Replies

2. Shell Programming and Scripting

urgent help needed.

Ok I admit it I am stumped and I would appreciate any and all help Here is what I am trying to do. Korn Shell script I am setting a variable to another shell script that I want to invoke in my main script like so: GETDIR=/vol100/cfg/.getdir The .getdir shell script take a parameter,... (4 Replies)
Discussion started by: Batch
4 Replies

3. UNIX for Dummies Questions & Answers

Urgent help needed

Hi I am using DB2 as the database and i am reading syscat.columns from the database. I want to manipulate the rows returned by running SQL query from the shell script. The manipulation involves addition and deletion of the rows from the resultset. All the above i want to do using SQL... (5 Replies)
Discussion started by: skyineyes
5 Replies

4. Shell Programming and Scripting

urgent needed

hi i want solution regarding usage of array. i m having code which is written using if- elif and can i use or access using arrays. here i wana use array values along with if -elif condition. i dnt wana use command line argument parameter1=(scram no_scram) if ; then ... (0 Replies)
Discussion started by: manish1
0 Replies

5. Windows & DOS: Issues & Discussions

Urgent XP help needed Please

Hi, Please accept my apologies if I have not explained anything clearly enough but i am a little old on new lingo!!! I am running XP from home and last night the following happened. After being logged on for pretty much the full day, I had what seemed like a pop up come up. Although most pop... (3 Replies)
Discussion started by: nike1601
3 Replies

6. UNIX for Advanced & Expert Users

Urgent help needed!!!

-------------------------------------------------------------------------------- hy guys, i got few interview questions i need someone to answer urgently: 1)If you cant get to the root, you try to fsck it, but gets errors to read file systems. What steps do you take to recover the host... (1 Reply)
Discussion started by: charneet
1 Replies

7. Shell Programming and Scripting

Urgent Help Needed.

Hi, Below is my issue which I desperately need and I want a shell script which can do this job. I need this script as I m planning to put this for a system health check. Please assist me. 1. There are 10 log files in a particular location. 2. open each log file. Goto to the end of the... (1 Reply)
Discussion started by: kashriram
1 Replies

8. UNIX for Dummies Questions & Answers

Urgent Help Needed

Hello Friends, I am a Graduate in Computers. I completed BCA degree this year. I want to make my career in UNIX. But, unfortunately I don't know anybody who can guide me. I am totally confuse because I don't know where to start and what are the future prospect in UNIX. Please give your... (4 Replies)
Discussion started by: Luckyless
4 Replies

9. Shell Programming and Scripting

Urgent Help needed !!!

Hi, I have a directory, where i get 4 files for each day... The files will be generated at any time. I am trying for a shell script for copying the file from this directory whenever new file is generated. Say for example : If the directory X has following files A1,A2,A3,A4,B1,B2,B3,B4...... (2 Replies)
Discussion started by: krishh.kk
2 Replies

10. Shell Programming and Scripting

Urgent Help needed...

Hi I want to create a script which deleted files in the following folders older than 30 days. There are a particular version of files inside it to be deleted Folders : /files0/interfaces/ResponsysSavedList/BackInStock/EmailContent/backup... (3 Replies)
Discussion started by: Scudza
3 Replies
INGRES_SET_ENVIRONMENT(3)						 1						 INGRES_SET_ENVIRONMENT(3)

ingres_set_environment - Set environment features controlling output options

SYNOPSIS
bool ingres_set_environment (resource $link, array $options) DESCRIPTION
ingres_set_environment(3) is called to set environmental options that affect the output of certain values from Ingres, such as the time- zone, date format, decimal character separator, and float precision. PARAMETERS
o $link - The connection link identifier o $options - An enumerated array of option name/value pairs. The following table lists the option name and the expected type +----------------------+---------------------------------------------------+ | Option name | | | | | | | Option type | | | | | | Description | | | | | | Example | | | | +----------------------+---------------------------------------------------+ |date_century_boundary | | | | | | | | | | integer | | | | | | The threshold by which a 2-digit year is deter- | | | mined to be in the current century or in the next | | | century. Equivalent to II_DATE_CENTURY_BOUNDARY | | | | | | 50 | | | | | timezone | | | | | | | | | | string | | | | | | Controls the timezone of the session. If not set, | | | it will default the value defined by II_TIME- | | | ZONE_NAME. If II_TIMEZONE_NAME is not defined, | | | NA-PACIFIC (GMT-8 with Daylight Savings) is used. | | | | | | UNITED-KINGDOM | | | | | date_format | | | | | | | | | | integer | | | | | | Sets the allowable input and output format for | | | Ingres dates. Defaults to the value defined by | | | II_DATE_FORMAT. If II_DATE_FORMAT is not set, the | | | default date format is US, for example mm/dd/yy. | | | Valid values for date_format are: | | | | | | oINGRES_DATE_DMY | | | | | | oINGRES_DATE_FINISH | | | | | | oINGRES_DATE_GERMAN | | | | | | oINGRES_DATE_ISO | | | | | | oINGRES_DATE_ISO4 | | | | | | oINGRES_DATE_MDY | | | | | | oINGRES_DATE_MULTINATIONAL | | | | | | oINGRES_DATE_MULTINATIONAL4 | | | | | | oINGRES_DATE_YMD | | | | | | oINGRES_DATE_US | | | | | | INGRES_DATE_ISO4 | | | | | decimal_separator | | | | | | | | | | string | | | | | | The character identifier for decimal data | | | | | | "," | | | | | money_lort | | | | | | | | | | integer | | | | | | Leading or trailing currency sign. Valid values | | | for money_lort are: | | | | | | oINGRES_MONEY_LEADING | | | | | | oINGRES_MONEY_TRAILING | | | | | | INGRES_MONEY_LEADING | | | | | money_sign | | | | | | | | | | string | | | | | | The currency symbol to be used with the MONEY | | | datatype | | | | | | EUR | | | | | money_precision | | | | | | | | | | integer | | | | | | The precision of the MONEY datatype | | | | | | 2 | | | | | float4_precision | | | | | | | | | | integer | | | | | | Precision of the FLOAT4 datatype | | | | | | 10 | | | | | float8_precision | | | | | | | | | | integer | | | | | | Precision of the FLOAT8 data | | | | | | 10 | | | | | blob_segment_length | | | | | | | | | | integer | | | | | | The amount of data in bytes to fetch at a time | | | when retrieving BLOB or CLOB data. Defaults to | | | 4096 bytes when not set explicitly | | | | | | 8192 | | | | +----------------------+---------------------------------------------------+ RETURN VALUES
Returns TRUE on success or FALSE on failure. EXAMPLES
Example #1 Set date_format to ISO4 <?php $options = array( "date_format" => INGRES_DATE_ISO4 ); if (ingres_set_environment($link, $options)) { $result=ingres_query($link,"select date('now') as date"); while ( $object = ingres_fetch_object ($result) ) { echo $object->date." "; } } ?> Example #2 Set timezone to HONG-KONG <?php $options = array( "timezone" => "HONG-KONG"); if (ingres_set_environment($link, $options)) { $result=ingres_query($link,"select date('now') as date"); while ( $object = ingres_fetch_object ($result) ) { echo $object->date." "; } } ?> SEE ALSO
ingres_connect(3), ingres_query(3). PHP Documentation Group INGRES_SET_ENVIRONMENT(3)
All times are GMT -4. The time now is 07:19 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy