10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
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)
Discussion started by: NDalal007
4 Replies
2. Shell Programming and Scripting
Below is a test script I'm writing in the process of learning to write script. When I try to run it I get an unexpected end of file error on line 56. Thoughts?
SCRIPT:
#!/bin/bash
# system_page - A script to produce a system information HTML file
##### Constants
TITLE="My System... (1 Reply)
Discussion started by: mpercy725
1 Replies
3. UNIX for Advanced & Expert Users
tar: write error: unexpected EOF
I usually encounter this when I'm doing backup to Dat72 tape. Here's the command
gzip all files in a directory then tar cvfp /dev/rmt/0n files. Not all files are copied. Any things I should look at? Directory size?
---------- Post updated at 05:20 PM... (1 Reply)
Discussion started by: lhareigh890
1 Replies
4. Shell Programming and Scripting
I am trying to check the return status of a command thats encapsulated
in an <<EOF
#!/bin/ksh
set -x
xxx()
{
set -x
ls -lt /tmp/jdlkewjdlkewjdlkewjdlewjdlew<<EOT
ret=$?
EOT
echo "ret=$ret"
} >>$LOG 2>&1
LOG=/tmp/t2.out
rm -rf $LOG
echo "Starting process `date... (2 Replies)
Discussion started by: BeefStu
2 Replies
5. Shell Programming and Scripting
#!/bin/bash
while :
do
clear
echo ""***************************************"
echo "* - MAIN - MENU - *"
echo "***************************************"
echo "* 1. Directory Listing *"
echo "* 2. Users Currently Logged In *"
echo "* 3. Create a... (2 Replies)
Discussion started by: celtic123
2 Replies
6. UNIX for Dummies Questions & Answers
I have a script which throws an error: "here document `EOF' unclosed"
The script is:
...
main()
{
RETVAL=`sqlplus -s $ConnectDetails << EOF
SET SERVEROUTPUT ON
DECLARE
errnum NUMBER;
errmsg VARCHAR2(1000);
BEGIN
My_Procedure( errbuf => errmsg, errcode... (2 Replies)
Discussion started by: laiko
2 Replies
7. UNIX for Advanced & Expert Users
I need archive data from some tar files. I use the command "tar xvf
filename". For about half of the files I get the error message
"tar:read error: unexpected EOF".
The number of bytes extracted comes very close to the size of the
tar file.
An example:
972434779 Jan 10 01:01... (4 Replies)
Discussion started by: mikeruth
4 Replies
8. Shell Programming and Scripting
Hi,
I am newbie and am just trying to connect to oracle from shell script ,,,but I am getting the following error
./prog.sh: line 20: syntax error: unexpected end of file
The scripts is :
#!/bin/bash
O=$IFS; IFS=",";
while read a b c d
do
echo $c
... (6 Replies)
Discussion started by: thana
6 Replies
9. UNIX for Dummies Questions & Answers
I am taring to disk and get this message:
tar: write error: unexpected EOF
This message is normally associated with tape devices, not disk.
Here is the syntax:
tar -cf <tarfilename> /dir
Have you seen this message on disk tars? (4 Replies)
Discussion started by: jabe
4 Replies
10. Shell Programming and Scripting
Hi friends,
I am using Sun Solaris 5.9. I want to take backup of 3 folders which are 50 GB in size totally using tar command on tapes. I am having DAT 72 tape. After initiating tar command (tar -cvf /dev/rmt/0n /tmp/dir1/ /tmp/dir2/ /tmp/dir3/), tarring is stopped after 10 hrs (approx) and i am... (7 Replies)
Discussion started by: vijayakumar.pc
7 Replies