7 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
Hello All,
When using CUPs. Does the file that gets printed live in some temp directory somewhere?
For example, if a user submits a PDF file to be printed, does a cached copy of that PDF file live somewhere on the Server in a temporary directory, at least until its printed?
# lpq -P... (1 Reply)
Discussion started by: mrm5102
1 Replies
2. Shell Programming and Scripting
Gurus,
I have written a shell script to backup a database and applications. This is how the script works:
1. As applications user (say applmgr), the main backup script, say backup.sh, is kicked off.
2. backup.sh does ssh to oracle user and kicks off the database backup using nohup and... (1 Reply)
Discussion started by: sunpraveen
1 Replies
3. Shell Programming and Scripting
Hello all.
I need some help modifying the following script:
#!/bin/bash
#PBS -l nodes=1:ppn=8,walltime=48:00:00,os=centos53computeA
## To submit type: qsub x.sh
# If not an interactive job (i.e. -I), then cd into the directory where
# I typed qsub.
if ; then
if ; then
cd... (3 Replies)
Discussion started by: marcozd
3 Replies
4. Shell Programming and Scripting
Hi
I have submitted an at command to run next week .
Now i want to remove the submitted at command .
I dont want the job to run .
Can anyone help me , with the command to remove the submitted at command .
thanks in advance ... (3 Replies)
Discussion started by: rxg
3 Replies
5. Shell Programming and Scripting
Hi Moderator,
I am not able to view my post
Shell Programming and Scripting - The UNIX and Linux Forums
7 Hours Ago by scottn · Go to last post · 2, 43. Encryption of card number ( Multi-page thread 1 2). mad_man12. 8 Hours Ago by Corona688 · Go to last post ...
Please Advice (1 Reply)
Discussion started by: mad_man12
1 Replies
6. UNIX for Advanced & Expert Users
Why does running 5 FTP scripts sequentially take longer to run (16 seconds)
than when all 5 are submitted to a subprocess and run simultaneously (7 seconds)?
I would think there would be some I/O contention.
There are about 10 files to be FTP'd in each script.
Although each script... (0 Replies)
Discussion started by: tomstone_98
0 Replies
7. UNIX for Dummies Questions & Answers
:confused:
I have a process which was schedule to run from 8am - 6pm daily. The scripts will search & run the commands that i was predefined in the database. Ususally, there were about 6-7 jobs for each submission and each job takes about 1-2 hrs and running one by one. And, I have a cron job... (3 Replies)
Discussion started by: hk_newbie
3 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)