Am using unix KSH .
I would like to clarify two doubts.
Whenever am transfering the zero size file am getting the warning message netout.
files will be transferred to target server or not?
I have used the code as
I would like to know
what is the value in VAR variable after transfering zero size files.
how to ignore this warning instead ${ERR} use /dev/null ?
whenever am transferring zero size file am getting the error running ftp.sh to send ${FILE} - see ${LOG}" ( ex: if am transferring zero size files in code goes to else part i.e successfully sent )
Last edited by Don Cragun; 10-29-2013 at 05:27 AM..
Reason: Removed more spurious formatting
I'm running Fedora Core 6 as an FTP server on a powerMac G4...
I'm trying to create a script to remove files older than 3 days...
I'm able to find all data older than 3 days but it finds hidden files such as
/home/ftp/goossens/.canna
/home/ftp/goossens/.kde... (4 Replies)
Most of the people think that they can not use Unix as desktop.
By this poll we gone tell them that we not just use Unix as desktop but also love different display managers like GNOME, KDE etc..... (1 Reply)
I am trying to figure out how to run the below variable assignment in a shell script so that it will snuff the "no such file or directory" and just pass the count value. That way I can do a valid compare in the next step.
num=`ls /appsrv/tmp/PrjRefData_20090428-*_in.xml | wc -l`
ls:... (3 Replies)
Hi All,
The means I use to ignore case, as an example is the following snippet:
It should accept any oof the following y|Y|YES|Yes|n|N|NO|No
echo "Enter Y/N to continue: "
read choice; (3 Replies)
Hi ,
When i try to ftp a zero byte file across through a shell script
It gives me the mesaage
netout: write returned 0?
Is there any way i can supress this message as it does not affect the execution of the script
Thanks (1 Reply)
Hi,
I have a FTP script that check for ".done" files in the remote path and the "get" the corresponding data files. Here's how it does.....
First it list all the *.done file as below:
ls *.done
And then it picks one file and get the corresponding data file. After that it... (3 Replies)
Hello,
I have to backup some cds but I get an I/O error message when I hit a bad sector (using the command cat) and my question is : what can I do to force the system to ignore theses errors (or all kind of errors) and let the process keep going?
(sorry for any eventuals language errors, I am... (6 Replies)
Can someone help me of doing something like this
send.sh
#!/bin/bash
for last; do true; done
echo $* | gammu sendsms TEXT $last
every thing is good except that when i launch the script like this
./send.sh This is the message i want to send +63922XXXXXXX
it turned out the message of... (2 Replies)
Hello,
i have bash script where im cycling some command for different lines in external file.
example:
while read domain;do
nslookupout=$(nslookup -type=ns $domain) || true
another commands
done < filenamewithdomains
i added:
|| true
after the command in belief it will just skip... (6 Replies)
Discussion started by: postcd
6 Replies
LEARN ABOUT HPUX
xtwarningmsg
XtWarningMsg() XtWarningMsg()
Name
XtWarningMsg - call the high-level warning handler.
Synopsis
void XtWarningMsg(name, type, class, default, params, num_params)
String name;
String type;
String class;
String default;
String *params;
Cardinal *num_params;
Inputs
name Specifies the general kind of error.
type Specifies the detailed name of the error.
class Specifies the resource class of the error.
default Specifies the default message to use if no message is found in the database.
params Specifies an array of values to be inserted into the message.
num_params
Specifies the number of elements in params.
Availability
XtWarningMsg() has been superseded by XtAppWarningMsg().
Description
XtWarningMsg() passes all of its arguments to the installed high-level warning handler. The default high-level warning handler is _XtDe-
faultWarningMsg(). It calls XtAppGetErrorDatabaseText() to lookup an error message of the specified name, type, and class in the error
database. If no such message is found, XtAppGetErrorDatabaseText() returns the specified default message. In either case, _XtDefaultWarn-
ingMsg() does a printf-style substitution of params into the message, and passes the resulting text to the low-level warning handler by
calling XtWarning().
Usage
XtWarningMsg() has been superseded by XtAppWarningMsg(), which performs the same function on a per-application context basis. XtWarn-
ingMsg() now calls XtAppWarningMsg() passing the default application context created by XtInitialize(). Very few programs need multiple
application contexts, and you can continue to use XtWarningMsg() if you initialize your application with XtInitialize(). We recommend,
however, that you use XtAppInitialize(), XtAppWarningMsg(), and the other XtApp*() application context specific functions.
See XtAppWarningMsg() for more information.
See AlsoXtAppErrorMsg(1), XtAppWarningMsg(1).
Xt - Error Handling XtWarningMsg()