Sponsored Content
Full Discussion: Script Help
Top Forums Shell Programming and Scripting Script Help Post 302553699 by ahamed101 on Thursday 8th of September 2011 09:44:18 AM
Old 09-08-2011
I don't see any issue with your code.
Execute the code with -x option like this and see. It will help to identify the issue.
Code:
sh -x File_Size.sh sdjkjkdf

And are you sure the "echo" is in place? Cause it is treating as if the code is missing "echo" and treating "File test.xml FOUND" as a command which it cannot(obviously) find.

--ahamed
This User Gave Thanks to ahamed101 For This Post:
 

5 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

create a shell script that calls another script and and an awk script

Hi guys I have a shell script that executes sql statemets and sends the output to a file.the script takes in parameters executes sql and sends the result to an output file. #!/bin/sh echo " $2 $3 $4 $5 $6 $7 isql -w400 -U$2 -S$5 -P$3 << xxx use $4 go print"**Changes to the table... (0 Replies)
Discussion started by: magikminox
0 Replies

2. Shell Programming and Scripting

Script will keep checking running status of another script and also restart called script at night

I am using blow script :-- #!/bin/bash FIND=$(ps -elf | grep "snmp_trap.sh" | grep -v grep) #check snmp_trap.sh is running or not if then # echo "process found" exit 0; else echo "process not found" exec /home/Ketan_r /snmp_trap.sh 2>&1 & disown -h ... (1 Reply)
Discussion started by: ketanraut
1 Replies

3. UNIX for Dummies Questions & Answers

Calling a script from master script to get value from called script

I am trying to call a script(callingscript.sh) from a master script(masterscript.sh) to get string type value from calling script to master script. I have used scripts mentioned below. #masterscript.sh ./callingscript.sh echo $fileExist #callingscript.sh echo "The script is called"... (2 Replies)
Discussion started by: Raj Roy
2 Replies

4. Shell Programming and Scripting

Shell script works fine as a standalone script but not as part of a bigger script

Hello all, I am facing a weird issue while executing a code below - #!/bin/bash cd /wload/baot/home/baotasa0/sandboxes_finance/ext_ukba_bde/pset sh UKBA_publish.sh UKBA 28082015 3 if then echo "Param file conversion for all the areas are completed, please check in your home directory"... (2 Replies)
Discussion started by: ektubbe
2 Replies

5. Shell Programming and Scripting

How to block first bash script until second bash script script launches web server/site?

I'm new to utilities like socat and netcat and I'm not clear if they will do what I need. I have a "compileDeployStartWebServer.sh" script and a "StartBrowser.sh" script that are started by emacs/elisp at the same time in two different processes. I'm using Cygwin bash on Windows 10. My... (3 Replies)
Discussion started by: siegfried
3 Replies
FBSQL_ERROR(3)								 1							    FBSQL_ERROR(3)

fbsql_error - Returns the error message from previous operation

SYNOPSIS
string fbsql_error ([resource $link_identifier]) DESCRIPTION
Returns the error message from previous FrontBase operation. Errors coming back from the fbsql database backend don't issue warnings. Instead, use fbsql_error(3) to retrieve the error text. Note that this function only returns the error code from the most recently executed fbsql function (not including fbsql_error(3) and fbsql_errno(3)), so if you want to use it, make sure you check the value before calling another fbsql function. PARAMETERS
o $ link_identifier -A FrontBase link identifier returned by fbsql_connect(3) or fbsql_pconnect(3).If optional and not specified, the function will try to find an open link to the FrontBase server and if no such link is found it will try to create one as if fbsql_connect(3) was called with no arguments. RETURN VALUES
Returns the error text from the last fbsql function, or '' (the empty string) if no error occurred. EXAMPLES
Example #1 fbsql_error(3) Example <?php fbsql_connect("marliesle"); echo fbsql_errno() . ": " . fbsql_error() . "<br />"; fbsql_select_db("nonexistentdb"); echo fbsql_errno() . ": " . fbsql_error() . "<br />"; $conn = fbsql_query("SELECT * FROM nonexistenttable;"); echo fbsql_errno() . ": " . fbsql_error() . "<br />"; ?> SEE ALSO
fbsql_errno(3), fbsql_warnings(3). PHP Documentation Group FBSQL_ERROR(3)
All times are GMT -4. The time now is 12:23 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy