10 More Discussions You Might Find Interesting
1. Programming
I am trying to write a large X app. I have successfully modified my xorg.conf to setup 4 monitors on an NVIDIA Quatro5200. I am trying to modify a simple hello world application to open a window on three of the four monitors. depending on the changes to loop the window creation section and event... (2 Replies)
Discussion started by: advorak
2 Replies
2. Shell Programming and Scripting
Hello There,
There are more than 1000 files in my log folder and i want to zip it to relase the space. But my method throwing
syntax error due to the multi part file name, how to overcome in this ?
ls -lart | grep "MDB_Kernel11.1_gwlog_SUN 22_09_2013" | awk '{print $9,$10,$11,$12}' | head... (8 Replies)
Discussion started by: gowthamakanthan
8 Replies
3. Shell Programming and Scripting
Hi,
I have a problem where I need to make this input:
nameRow1a,text1a,text2a,floatValue1a,FloatValue2a,...,floatValue140a
nameRow1b,text1b,text2b,floatValue1b,FloatValue2b,...,floatValue140b
look like this output:
nameRow1a,text1b,text2a,(floatValue1a - floatValue1b),(floatValue2a -... (4 Replies)
Discussion started by: nricardo
4 Replies
4. Shell Programming and Scripting
Hi all,
I want to retrieve a part of the mail ID.
Im using Ksh.
The mail ID's i handle are of the type:
abc.def@ghi.com
I want the abc part alone.
Here is the code i used:
a=`echo $mailid |sed 's/\(.*\)..../\1/'`
echo $a
but the output i get is abc.def@ghi
I dont know... (2 Replies)
Discussion started by: Jayaraman
2 Replies
5. Shell Programming and Scripting
hi,
i want to send last 10 lines of a file.. How can acheive that.
i tried this, but it is not working.
mailx -s "$SUBJ" $MAIL_ID < $LOGFILE|tail -10
Can somebody guide me... (2 Replies)
Discussion started by: bang_dba
2 Replies
6. Shell Programming and Scripting
Hallo!
I have generated lots of data file which all having this format:
sp*t1overt2*.txt
Now I want to change them in this way:
sp*t2overt1*.txt
The rest of the file names stay unchanged. I know this is kind of routine action in sed or awk, but dont know how! I tried this command:
... (6 Replies)
Discussion started by: forgi
6 Replies
7. Shell Programming and Scripting
Hi,
We are using KSH.
I was able to write a script where a mail is sent to the concerned persons and this is working perfectly file. I need to give a different color to a part of the data in the mail which. The script written is as follows;
(echo "From: $REPLY"
echo "To: $DLIST"
echo... (6 Replies)
Discussion started by: jmathew99
6 Replies
8. UNIX for Dummies Questions & Answers
Hi there,
not sure if I am in the right place but here is my question.
I have a file that is over 100mb and my host does not allow FTP of files above 100mb so I thought I would use a compression utility to compress it into smaller parts say 10mb each, upload them and then re-assemble them on... (7 Replies)
Discussion started by: gffb
7 Replies
9. UNIX for Dummies Questions & Answers
Dear Experts
Why we always hear that unix operating system is Multi User and Multi task. What does these two means. I have looked at some books and documents but couldn't find aclear explenation. Can we say Windows operating system is also multi user and multi task??
Thanks for your help in... (6 Replies)
Discussion started by: Reza Nazarian
6 Replies
10. UNIX for Dummies Questions & Answers
I presently use the php function mail() to send to a mailing list with over 5000 recipients. Even with blind copy, I get timed out and the process takes too long.
I would like to set the job up as a background job. Can someone help me with the shell code for sending mailing as a background job. (2 Replies)
Discussion started by: HungryH
2 Replies
MYSQL_ERRNO(3) 1 MYSQL_ERRNO(3)
mysql_errno - Returns the numerical value of the error message from previous MySQL operation
SYNOPSIS
Warning
This extension is deprecated as of PHP 5.5.0, and will be removed in the future. Instead, the MySQLi or PDO_MySQL extension should
be used. See also MySQL: choosing an API guide and related FAQ for more information. Alternatives to this function include:
omysqli_errno(3)
o PDO::errorCode
int mysql_errno ([resource $link_identifier = NULL])
DESCRIPTION
Returns the error number from the last MySQL function.
Errors coming back from the MySQL database backend no longer issue warnings. Instead, use mysql_errno(3) to retrieve the error code. Note
that this function only returns the error code from the most recently executed MySQL function (not including mysql_error(3) and
mysql_errno(3)), so if you want to use it, make sure you check the value before calling another MySQL function.
o $
link_identifier -The MySQL connection. If the link identifier is not specified, the last link opened by mysql_connect(3) is
assumed. If no such link is found, it will try to create one as if mysql_connect(3) was called with no arguments. If no connection
is found or established, an E_WARNING level error is generated.
Returns the error number from the last MySQL function, or 0 (zero) if no error occurred.
Example #1
mysql_errno(3) example
<?php
$link = mysql_connect("localhost", "mysql_user", "mysql_password");
if (!mysql_select_db("nonexistentdb", $link)) {
echo mysql_errno($link) . ": " . mysql_error($link). "
";
}
mysql_select_db("kossu", $link);
if (!mysql_query("SELECT * FROM nonexistenttable", $link)) {
echo mysql_errno($link) . ": " . mysql_error($link) . "
";
}
?>
The above example will output something similar to:
1049: Unknown database 'nonexistentdb'
1146: Table 'kossu.nonexistenttable' doesn't exist
mysql_error(3), MySQL error codes.
PHP Documentation Group MYSQL_ERRNO(3)