Sponsored Content
Top Forums Shell Programming and Scripting Error executing shell script in Linux Post 302315635 by sunpraveen on Wednesday 13th of May 2009 02:50:01 AM
Old 05-13-2009
There is no need to use ".sh" to execute a shell script. You can use just the file name without any extensions.

Try this:

Code:
 
sqlplus -s /nolog << EOF  > $SCRIPTS_DIR/scriptsDir2/logs/update.log
 
connect $APIL_USER@$DB
@$SCRIPTS_DIR/scriptsDir2/update.sql
exit;
EOF

Remember: Never use "sqlplus username/pwd" on the command line as it poses a huge security risk.

HTH, Smilie

Regards,

Praveen
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Error message while executing the shell script

Hi All, When I am trying to execute the below shell script I got this error message. script ========== #!/bin/bash /usr/java/jdk1.5.0_10/bin/java - classpath /var/lib/asterisk/agi-bin/mysql-connector-java-3.0.15-ga-bin.jar/: /var/lib/asterisk/agi-bin/jarfiles:... (4 Replies)
Discussion started by: ajayyaduwanshi
4 Replies

2. Shell Programming and Scripting

Error executing shell command from a perl script

Hi Gurus, I've a find command that gets the list of files from a source directory where the extension is not html, xml, jsp, shtml or htaccess. The below find command runs fine from the command prompt or in a shell script. I need to eventually run it in a PERL script and am getting the... (5 Replies)
Discussion started by: voorkey
5 Replies

3. Linux

Error executing shell script in Linux

Hi, I have following shell script code : ------------------------------------------------------------------ #!/bin/bash SCRIPTS_DIR="/scriptsDir1" # tables login/password APIL_USER="uname/pswd" I2_USER="uname/pswd" # Database DB="db1" cd "$SCRIPTS_DIR/scriptsDir2" sqlplus... (1 Reply)
Discussion started by: Chaitrali
1 Replies

4. Shell Programming and Scripting

SFTP-how to log individual sftp command error while executing shell script

Hi, I have situation where i need to automate transferring 10000+ files using sftp. while read line do if ; then echo "-mput /home/student/Desktop/folder/$line/* /cygdrive/e/folder/$line/">>sftpCommand.txt fi done< files.txt sftp -b sftpCommand.txt stu@192.168.2.1 The above... (1 Reply)
Discussion started by: noobrobot
1 Replies

5. Shell Programming and Scripting

Linux- shell script - if then else - error

Hi I am using Linux, I am getting the error while executing the shell script., the code in the shell script is # $Header:$ #!/bin/ksh l_filesleft=1 if then echo "File has exceeded the 100 MB limit." else echo "None" fi Error: mc.sh: line 9: syntax error: unexpected end of file ... (11 Replies)
Discussion started by: dc_dc
11 Replies

6. Shell Programming and Scripting

error when executing shell scrpit

Guys, when i am executing the following script I am getting following error. -bash: test.sh: command not found $ test.sh -- script name #! /bin/bash echo " Job started........" CURRENTDIR=`pwd` exit 0 thanks Please view this link: How to use ... tags (2 Replies)
Discussion started by: skatpally
2 Replies

7. Shell Programming and Scripting

SP2-0642 error while executing procedure from shell script

hi all, i have a unix script where i am calling a database procedure from it. while executing the procedure i am getting an error: but when i tried to call the same procedure manually then it ran successfully, i goggled this issue and found timezone.dat file missing at... (0 Replies)
Discussion started by: lovelysethii
0 Replies

8. UNIX for Advanced & Expert Users

Linux : getting error while executing mkfs

Hi All, i am getting below error while executing mkfs after creating a new partition in linux /dev/sda2 is apparently in use by the system ; will not make a filesystem here. Anyone having any idea , how to solve this problem thanks (2 Replies)
Discussion started by: Jcpratap
2 Replies

9. Shell Programming and Scripting

Executing perl script in Linux gives :Exec format error. Wrong Architecture

i have perl script that used to be working great , once i edit it in windows and convert it to UTF-8 and then via FTP return it . also did: chmod +x foo.pl and then when i try to run it : ./foo.pl im getting this error: ./foo.pl: Exec format error. Wrong Architecture.... (4 Replies)
Discussion started by: umen
4 Replies

10. Shell Programming and Scripting

Error while executing the shell script

Hi Gurus, The following script fails with the error 'command not found' while trying to execute. As the error indicates, the script fails at ROW#30 where the EOF is defined for SQL statement. It appears that the script is trying execute the lines in the SQL output written to ta spool file.... (7 Replies)
Discussion started by: svajhala
7 Replies
DEBCONF-UPDATEPO(1)						    po-debconf						       DEBCONF-UPDATEPO(1)

NAME
debconf-updatepo - update PO files about debconf templates SYNOPSIS
debconf-updatepo [-v] [-h] [--podir=DIR] [--skip-pot] [--skip-merge] [--msgid-bugs-address=EMAIL] DESCRIPTION
This program reads po/POTFILES.in to determine which master files need to be processed, then extracts new gettext strings into po/templates.pot and updates all po/*.po files. This script can be called either in the top-level directory, or in the debian or debian/po subdirectories. It is run by developer and/or translator to update PO files when the English text is modified in templates files. OPTIONS
-h, --help Display a usage summary and exit. -v, --verbose Process in verbose mode. --podir=DIR Set directory for PO files. By default PO files are searched in debian/po, po and ../po directories in that order. --skip-pot Do not generate a new po/templates.pot file. --skip-merge Do not merge existing PO files with po/templates.pot. --msgid-bugs-address=EMAIL Set the email address that will be specified in the POT's Report-Msgid-Bugs-To field. By default, this field is set to <package>@package.debian.org. It is intended for the maintainers of Debian based distributions, and should be used in the following cases: o The package is not present in Debian (and thus the <package>@packages.debian.org address does not exist). o The maintainer made significant changes in the debconf templates (or added templates to a Debian package without templates), and does not want to bother the Debian maintainer with bug reports that won't be relevant for the Debian maintainer. The default address is preferred to avoid corrections in the Debian based distribution without a notification to the Debian maintainer. SEE ALSO
debconf-gettextize(1), po2debconf(1), podebconf-report-po(1), po-debconf(7). AUTHOR
Denis Barbier <barbier@linuxfr.org> 2016-10-01 DEBCONF-UPDATEPO(1)
All times are GMT -4. The time now is 06:02 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy