There are probably 50 or 60 files in the tar. When I cat the tar file the contents of each file are displayed so the tar definitely contains all of the files. tar -tvf does the same and only shows the first file.
My tar file has many files but when I use tar xvf only the first file is extracted. What is the problem?
ray @ loninsathp1:/home/ray/scripts#ls -lrt use*
-rwxr--r-- 1 ray dba 271934 Jun 22 16:31 useful_scripts.tar
ray @ loninsathp1:/home/ray/scripts#tar -xvf useful_scripts.tar
x...
...actually it would be quite helpful to know how to get scripts like this from work to home without the format being changed or how can I convert the format once I have got the script to my home.
Hi everyone who responded thanks for your input. It looks like the problem was caused by my developing this shell on a Unix box at work, FTPing to my desktop, emailing to my home and copying to my home Linux server. This long way of getting this script from work to home has interferred with the...
This is my script called dbfunctions.ksh:
function LOGF
{
tstamp=`date '+%d/%m/%y %X'`
echo "$tstamp ${1}" >> $LOG
return 0
}
LOG=test.log
First I pass the command set -x
but when I run the script the following error occurs. I cannot see anything wrong.
. ./dbfunctions.ksh
+ ...
This would work if my parameter was hard coded. However, the problem is that the parameter that I am passing in is an environment variable (apologies, I did not mention this in my earlier posting) ie.
FILE=export.test
FILE_EXT=log
shell.ksh ${FILE}.*.${FILE_EXT}
When running a shell script I want to call another shell script and pass in a parameter representing a filename.
The structure of the filename is:
ProgramName.DatabaseName.Date.log
Whilst the ProgramName and DatabaseName are known the date is not known.
if...
ProgramName=export...
As I suspected there was a problem with the monitor settings. I copied /etc/X11/XF86Config.install over /etc/X11/XF86Config then rebooted and my Linux desktop has loaded successfully.
Thanks for your replies to earlier question. I managed to get hold of Suse 9.2, which has a 2.6 kernel. The installation completed successfully but when I boot to Linux the screen displays...Initiating hardware then Starting System then Starting Devices then Starting Services but then a White...
I have Windows 2000 Server already installed and want to dual boot to Red Hat Linux 9 and need some advice as to the best way to do this.
I have 2 disks installed in my current setup:
40gb IDE Disk with Windows 2000 Server installed on NTFS
200gb Serial ATA Maxtor currently empty on NTFS...
Thanks for the link to the SAX tutorial, it helped me a great deal.
Just one further question I am trying to parse the following using the SAX example from the link and everything is written out to a file except the equals(=) character both before "text/css" and "#F5F5DC". Any ideas why this...
Does anyone have examples using SAX that will enable me to extract the values myType and myContent from the TYPE and CONTENT tags using the XML example below. The XML could be held in a file, string or DOM:
<MESSAGE>
<TYPE>myType</TYPE>
<CONTENT>myContent</CONTENT>
</MESSAGE>
It looks like we are trying to do the impossible for the Java version we are at so we have redesigned our app so that we do not need to know the previous class.
Thanks to everyone who has contributed to this issue.
Thanks for the input. hologram's example is what we are looking for but we are restricted to version 1.3.8 and the StackTraceElement is new from 1.41.
In answer to Diancecht, we are a team of 4 who are all fairly new to Java and we are developing a generic interface that will sit between two...
Hi
Thanks for taking the trouble to respond. I have many classes that could call a particular class (SecondClass below) and from within the class (SecondClass) I want to know which of the other classes called it. I don't want to pass in a parameter to SecondClass giving the name of the calling...
You are right there is a space but I think this has occurred when cutting and pasting into this forum because the script I am having problems with does not have the space. Thanks for your input.
I am running a job using nohup which is hanging then exiting with a SIGTTIN message which I understand is where the program is waiting for some input. It looks like it does not like the rsh command although this works fine when I run from the command line. Can anyone explain what input this...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.