I ran the following scripts and everytime i get the errot as follows
Line 54: unexpected EOF while looking for matching ','
line 57 syntex error unexpected end of file#!/bin/ksh
set -x
BKUP_DIR=/u03/backups/abu/nightly_backup
LOG_FILE=/u03/backups/abu/backup.log
ORACLE_HOME=... (9 Replies)
I have a trouble in my script when i use EOF inside block if.
If i use EOF whitout block if I don´t have problem.
Guys any ideas?
Sorry for my terrible English.
#!/bin/sh
set -xv
HOST='ftp.fiction.com.br'
USER='fictionuser'
PASS='fictionpass'
FILE='ftpteste.txt'
busca=`find... (4 Replies)
Hi everyone,
I am trying to search for a string in a file that is partly made up of a variable. Here's the code:
echo "parentCategory = $parentCategory"
echo "parentCategoryFormatted = $parentCategoryFormatted"
numUrlsFoundInParentCategory=`grep -c "<Topic r:id=\"Top\/World\/Français\/"... (2 Replies)
hello everyone...im having this problem with unexpected EOF with line 85 which is..i cant see whats wrong with it..can any1 plz help me out.
read -p "$p1 please enter the number of tries you wish to have:" lifeline
function main()
{
guessnum=0
read -p "Please... (6 Replies)
hello everyone...im having this problem with unexpected EOF with line 85 which is..i cant see whats wrong with it..can any1 plz help me out.
read -p "$p1 please enter the number of tries you wish to have:" lifeline
function main()
{
guessnum=0
read -p "Please enter if its sinle player game... (1 Reply)
I have a piece of Linux script. It tells me some syntax error. I couldn't find it. Please help me to identify them. Thanks. The code looks like this:
export ORACLE_SID=MYDB
export SPW=`cat /opt/oracle/scripts/.sys_pw_$ORACLE_SID`
export check_arch=`sqlplus -s << EOF
/ as sysdba... (7 Replies)
Hi,
can someone kindly look into my copy script and figure out why am i getting a "unexpected EOF while looking for matching `"' error message
#!/bin/ksh -x
cd /home/goldenga/test/flag37
if ; then
rm copied.ok
cd /home/goldenga/test
Upper=`ls -t|grep 'qw*'|cut -d "w" -f 2|head... (4 Replies)
Since cPanel does not support deleting emails older then X amount of days I am using the following on a Cron Job.
find -P /home/user/mail/domain/ -mindepth 2 -mtime '+366' -type f -printf '"%p"\n' | grep -v '/Important' | grep -v '/.Important' | xargs -I {} rm -r "{}"
Executing it via SSH... (4 Replies)
Hi, I am a new Unix Guru with very little experience but have the task of P2Ving an old HP Proliant ML370 G5 server to VMware ESX 4.1 or ESXi 5.5.
System seems to boots fine but when trying to remove HP software, configure TCP/IP or a driver, I am receiving:
--------
... (7 Replies)
Discussion started by: dj_Italian
7 Replies
LEARN ABOUT HPUX
getfsfile
getfsent(3X)getfsent(3X)NAME
getfsent(), getfsspec(), getfsfile(), getfstype(), setfsent(), endfsent() - get file system descriptor file entry
SYNOPSIS
Remarks:
These routines are included only for compatibility with 4.2 BSD. For maximum portability and improved functionality, new applications
should use the getmntent(3X) library routines.
DESCRIPTION
and each returns a pointer to an object with the following structure containing the broken-out fields of a line in the file. The structure
is declared in the header file:
The fields have meanings described in fstab(4). If the block special file name, the file system directory name, and the type are not all
defined on the associated line in these routines return pointers to NULL in the and fields. If the pass number or the backup frequency
field are not present on the line, these routines return -1 in the corresponding structure member. is reserved for future use.
Reads the next line of the file, opening the file if necessary.
Opens and rewinds the file.
Closes the file.
Sequentially searches from beginning of file
until a matching special file name is found, or until EOF is encountered.
Sequentially searches from the beginning of the file
until a matching file system file name is found, or until EOF is encountered. Sequentially searches from the beginning
of the file until a matching file system type field is found, or until EOF is encountered.
DIAGNOSTICS
A null pointer is returned on EOF, invalid entry, or error.
WARNINGS
Since all information is contained in a static area, it must be copied to be saved.
Obsolescent Interfaces
and are to be obsoleted at a future date.
AUTHOR
was developed by HP and the University of California, Berkeley.
FILES SEE ALSO fstab(4).
TO BE OBSOLETED getfsent(3X)