10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
I am working an some if then statements for a script.
I want to be able to check for alpha characters or empty out put then exit out.
echo "Serial Number Invaild"
then exit 3;
How do I account if the output is empty or null in this in this statement.
Many thanks (6 Replies)
Discussion started by: andysensible
2. Shell Programming and Scripting
I am using ISQL command in ksh script.
Suppose if i get NULL value from the query which i run,how can i handle it?
I am getting a NULL result set and the following error is coming.
############### output of isql command for getting the sum of JEs ################
NULL... (4 Replies)
Discussion started by: Sharma331
3. Shell Programming and Scripting
I'm using an text-to-speech synthesis in a script, and I need to redirect it's output to /dev/null
how can I do that ? And how to redirect the stream to his normal output then （sound card ) ?
thankx (2 Replies)
Discussion started by: firelink
4. Shell Programming and Scripting
I have following data in a file
I want the output as
5~6.14~S~N~N~0.~4565~134~6584... (2 Replies)
Discussion started by: sol_nov
5. Shell Programming and Scripting
Please help me.. it is urgent. I am writing a perl script to capture command output and redirect it to a logfile.At the same i want to check the return code of the command and log it if the command is not succesful in my logfile.. Here is my code, it is working but system command inside... (2 Replies)
Discussion started by: sriramperumalla
6. Shell Programming and Scripting
I'm trying to send the error output of a 'cat' operation to /dev/null like this:
cat /dirA/dirB/temp*.log > /dirA/dirB/final.log 2>/dev/null
This works perfectly in a terminal, but not when placed in a script.
If there are no files matching temp*.log the script outputs an error... (7 Replies)
Discussion started by: Nils88
7. Shell Programming and Scripting
I have the following script, but are not too sure about the syntax to complete the script.
In essence, the script must connect to a SFTP server at a client site with username and password located in a file on my server.
Then change to the appropriate directory.
Pull the data to the... (1 Reply)
Discussion started by: codenjanod
8. UNIX for Dummies Questions & Answers
when I load a data from text file all the values become NULL in the table.
Please help me with this problem.
sheen (15 Replies)
Discussion started by: sheen
9. UNIX for Dummies Questions & Answers
I am working on a script to measure the read performance of a busybox environment. The logical choice is to use a command line like:
(time cp * /dev/null) 2> /tmp/howlong.txt
Ah, the rub is cp or /dev/null will only accept a single file at a time.
The result in the txt file is and... (1 Reply)
Discussion started by: stevesmo
10. Shell Programming and Scripting
I am having a "|" delimited flat file and I have to pick up all the records with the 2nd field having null value. Please suggest. (3 Replies)
Discussion started by: dsravan