Visit Our UNIX and Linux User Community

Search Results

Search: Posts Made By: Kevin Pryke
3,230
Posted By Kevin Pryke
Thanks for all your help.
Thanks for all your help.
3,230
Posted By Kevin Pryke
I've sorted it now, I ended up using dtox & then...
I've sorted it now, I ended up using dtox & then echoing it to a file like you suggested. This sort of thing

>$1.okp
dtox $1.kp > $1.dtox
for line in `cat $1.dtox`
do
echo $line >> $1.okp...
3,230
Posted By Kevin Pryke
Thanks, the file does always have a missing...
Thanks,

the file does always have a missing ^M on the last line. Is there any way I can get around this?

To give you a brief outline, the suppliers of the package that produces this file for...
3,230
Posted By Kevin Pryke
strange sed behavior
I have a file called products.kp which contains, for example,

12345678,1^M
87654321,2^M
13579123,3

when I run the command

cat products.kp| sed -f kp.sed

where kp.sed contains

s,^M,,...
2,038
Posted By Kevin Pryke
Can you post an example of how you are using it. ...
Can you post an example of how you are using it.

Thanks.
2
4,310
Posted By Kevin Pryke
To see if a ping has worked, check the return...
To see if a ping has worked, check the return value ($?)

ie. something like
ping -c1 <server_name>
if [ $? -ne 0 ]
then
echo "Not Found"
else
echo "Found
fi
added code tags for...
3,754
Posted By Kevin Pryke
the -v option in ksh -v is sending a listing of...
the -v option in ksh -v is sending a listing of your script to stderr (the 2> part of the command)

You have then redirected this to stdout (the > part) by putting 2>&1.

To stop this happening...
16,650
Posted By Kevin Pryke
The way I've done it on sco in the past is ...
The way I've done it on sco in the past is

lpstat -o|awk '{print $1}'|xargs cancel {}\; 2>/dev/null

maybe you can do something similar, you may need to use awk to get a different field...
1,485
Posted By Kevin Pryke
if you log on as root you can go into the admin...
if you log on as root you can go into the admin shell by typing

scoadmin

there's an option there for hardware/kernel manager.
10,906
Posted By Kevin Pryke
I'm not sure what else to suggest, I just knew...
I'm not sure what else to suggest, I just knew that I sometimes try to tar tapes that are cpio & get that error.
10,906
Posted By Kevin Pryke
Are you sure it was created using TAR? If I try...
Are you sure it was created using TAR? If I try to TAR a tape created using CPIO I get the error

tar : directory checksum error

try doing

cpio -itv < /dev/rm/0

to see if there's...
31,003
Posted By Kevin Pryke
find /etc -name "*" -print|xargs grep "KEYWORD"...
find /etc -name "*" -print|xargs grep "KEYWORD" |pg
Forum: Filesystems, Disks and Memory 10-15-2002
66,669
Posted By Kevin Pryke
Theres a link a thread here...
Theres a link a thread here (https://www.unix.com/showthread.php?s=&threadid=4799&highlight=tar)
4,621
Posted By Kevin Pryke
The startup files are located in /etc/rc.d (in...
The startup files are located in /etc/rc.d (in Sco anyway)

There's quite a few post about this if you do a search on /etc/rc.d
3,169
Posted By Kevin Pryke
change qdetail=fgrep $qename...
change

qdetail=fgrep $qename ../data/findprinter.dat

to

qdetail=`fgrep $qename ../data/findprinter.dat`

(Those are backquotes surrounding the command)
3,836
Posted By Kevin Pryke
cd to the directory with your logs in & do this ...
cd to the directory with your logs in & do this

find . -name "om20020927*" -print | xargs grep "'BalDeductError 6'" > grep.log

grep.log will then contain a list of all matches in your logs...
11,065
Posted By Kevin Pryke
sorry, bit of a typo. That should be sed...
sorry, bit of a typo. That should be

sed '/acc/d' LIST_A > LIST_A.tmp
mv LIST_A.tmp LIST_A
11,065
Posted By Kevin Pryke
You could use sed sed '/acc/d' LIST_A >...
You could use sed

sed '/acc/d' LIST_A > LIST_A.tmp
mv LIST_A.tmp > LIST_A
2,347
Posted By Kevin Pryke
Can execute them using the absolute address? ...
Can execute them using the absolute address?

i.e. /usr/bin/<command>

Is /usr/bin in your list of paths?

echo $PATH

If you find it's not in your paths, check your .profile

You could...
3,804
Posted By Kevin Pryke
You need to use the trap command see...
You need to use the trap command

see www.shelldorado.com for a good explanation of this.
2,387
Posted By Kevin Pryke
Could you use the -n option of grep to get the...
Could you use the -n option of grep to get the line numbers & use awk with {FS=":"} {print $1} to chop them out into a temporary file.

You can then run down the input file again with this file...
1,605
Posted By Kevin Pryke
if you're typing ftp ftp.netbsd.org I...
if you're typing

ftp ftp.netbsd.org

I know in SCO you need to have to have the name & ip address in /etc/hosts
4
ls
2,553
Posted By Kevin Pryke
You can use the -mtime option of find eg. ...
You can use the -mtime option of find

eg.

find /usr/data -name "*" -mtime +365 -print

will find all files in /usr/data (& subdirectories) that were last modified over 365 days ago.
6,220
Posted By Kevin Pryke
This should do it # !/bin/sh toggle=0 ...
This should do it

# !/bin/sh
toggle=0
field1=""
field2=""
lastfield1=""
lastfield2=""
exec < inputfile
exec > outputfile
while read line ; do
echo $line > linetemp
...
Forum: Filesystems, Disks and Memory 07-29-2002
12,063
Posted By Kevin Pryke
What message do you get when the script doesn't...
What message do you get when the script doesn't work?

If it's 'jdictd.sh not found' it's probably down to the directory your in not being part of the paths defined in your profile.

You can...
Showing results 1 to 25 of 69

 

Featured Tech Videos

All times are GMT -4. The time now is 10:37 AM.
Unix & Linux Forums Content Copyright 1993-2021. All Rights Reserved.
Privacy Policy