Search Results

Search: Posts Made By: shew01
5,649
Posted By shew01
This code looks very interesting. Can you post an...
This code looks very interesting. Can you post an example of how to call it?
5,649
Posted By shew01
Yup. This works. Thanks!
Yup. This works. Thanks!
5,649
Posted By shew01
Wow! Nice job. This is very usable now. ...
Wow! Nice job. This is very usable now.



The only reason that I was using du was that I was accumulating size from each file as I processed it, and I eventually overflowed the capacity of the...
5,649
Posted By shew01
Okay. That explains it. Thanks for the...
Okay. That explains it.



Thanks for the feedback. Unfortunately, I have zero skill in Perl and only a little bit of skill with awk.
5,649
Posted By shew01
Can anyone make this script run faster?
One of our servers runs Solaris 8 and does not have "ls -lh" as a valid command. I wrote the following script to make the ls output easier to read and emulate "ls -lh" functionality. The script...
60,555
Posted By shew01
I found the answers, and I thought I would post...
I found the answers, and I thought I would post them for anyone else who has had the same problem.

To dismount a temporarily mounted device:

umount /mnt/ntfs

To configure an NTFS share for...
60,555
Posted By shew01
To my surprise, this works (I created the...
To my surprise, this works (I created the /mnt/ntfs directory in an earlier step):

mount -t cifs //192.168.1.120/Linux -o username=myntaccount,password=mypassword /mnt/ntfs

ls -l /mnt/ntfs...
60,555
Posted By shew01
How to Mount a Remote NTFS Share for Read/Write under Linux
I've done this in the past, but I didn't save the syntax. I'm still kicking myself about that...

I am trying to mount \\server_name\share_name for read/write under CentOS 5.2 (a "generic" version...
10,403
Posted By shew01
It's been a while since I worked with DB2, but,...
It's been a while since I worked with DB2, but, the db2 command line verb may have a switch that would suppress the output of padded spaces, if it (i.e., the db2 command line verb) is the culprit. Do...
10,403
Posted By shew01
If the column is defined as varchar(32000), I...
If the column is defined as varchar(32000), I don't understand why you are retrieving what appears to be full width columns. I'm using Oracle instead of DB2, but the principle should be the same.
...
49,279
Posted By shew01
radoulov, This seems to work. Thanks!
radoulov,

This seems to work. Thanks!
49,279
Posted By shew01
zaxxon, For whatever reason, we have at...
zaxxon,

For whatever reason, we have at least two versions of df installed. One version says that -P is essentially the same as -k.

I'm still getting split lines with the second version of df...
49,279
Posted By shew01
Is there another way? Our version of Unix...
Is there another way? Our version of Unix (Solaris 8) does not support it.

df -Pk
df: unknown option: P
Usage: df [-F FSType] [-abegklntVv] [-o FSType-specific_options] [directory | block_device...
49,279
Posted By shew01
Can df output be forced to a single line for each file system?
df generates the following output on one of our systems:

df -k
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/vx/dsk/rootvol 4131866 3593316 497232 88% /
swap ...
11,196
Posted By shew01
I'm not interested in having a posting war with...
I'm not interested in having a posting war with you. Please just ignore my posts.
11,196
Posted By shew01
radoulov, This works for me too....
radoulov,



This works for me too. Thanks!
11,196
Posted By shew01
vgersh99, Cool! This seems to work....
vgersh99,



Cool! This seems to work. Thanks for the help.
11,196
Posted By shew01
System Shock, >>A quick look at the man...
System Shock,

>>A quick look at the man pages would've given you the answer.

I don't think so:

df -k | grep / | awk '{print $5}' | sort -gr
sort: illegal option -- g
usage: sort [-cmu] [-o...
11,196
Posted By shew01
Korn: How to zero fill df output so it will sort properly
I'm looking for a way in Korn shell to zero fill (or space fill) the output from df so that it will sort properly.

"Raw" output from df -k:

df -k

Filesystem kbytes used avail...
6,608
Posted By shew01
Okay. What is the syntax to restore the entire...
Okay. What is the syntax to restore the entire drive from this backup?
6,608
Posted By shew01
Smiling Dragon, Would you mind posting the...
Smiling Dragon,

Would you mind posting the code to backup and restore the whole disk farm too? (I haven't used tar that much.)

Thanks,

shew01
59,982
Posted By shew01
aigles, I think I found a workaround (see...
aigles,

I think I found a workaround (see quirk at https://www.unix.com/shell-programming-scripting/64575-substr-shell-script.html). This version of the code works:

MyString=abcde
i=1
while ((...
59,982
Posted By shew01
I'm getting different errors: expr: syntax...
I'm getting different errors:

expr: syntax error
<>
expr: syntax error
<>
expr: syntax error
<>
expr: syntax error
<>
expr: syntax error
<>

I've read several posts complaining about...
59,982
Posted By shew01
Good idea. nawk works.
Good idea. nawk works.
59,982
Posted By shew01
My script name is jps.ksh. Any ideas? ...
My script name is jps.ksh. Any ideas?

jps.ksh[3]: i++ < 5 : syntax error
Showing results 1 to 25 of 41

 
All times are GMT -4. The time now is 04:23 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy