Search Results

Search: Posts Made By: la_womn
39,022
Posted By la_womn
I ran this: and it still ran for a...
I ran this:



and it still ran for a couple of seconds, but returned nothing.
39,022
Posted By la_womn
It ran for a couple of seconds and returned...
It ran for a couple of seconds and returned nothing.
39,022
Posted By la_womn
I am on solaris
I am on solaris
39,022
Posted By la_womn
I am not receiving anything when I try to use...
I am not receiving anything when I try to use that code. The output file is blank.
1,824
Posted By la_womn
SSH Remote Server issue
I have a script that connects to remote servers using a public key. Some of the servers are not set up for the public key and I receive the following when I attempt to ssh: The authenticity of host...
39,022
Posted By la_womn
There is no maxdepth avilable in my version of...
There is no maxdepth avilable in my version of find.

Hoiw do I use that code you gave me. When I tried to use it - I got 6786785 .

I put it in like this:


What am I doing wrong?
39,022
Posted By la_womn
Controlling depth with find
I have the following script:



Now they have added on a new requirement, they only want to go to a certain depth in the directories returned. How do I code it to only go say 3 directories...
2,862
Posted By la_womn
I figured it out. My script now looks like: ...
I figured it out. My script now looks like:



Thank yiou to everyone for your help.
2,862
Posted By la_womn
Thank you! That did it. Two more questions:...
Thank you! That did it.

Two more questions:
Now the output is all on one line, is there a quick way to parse it to multiple lines?

When the find creates an error, it is written to the screen,...
2,862
Posted By la_womn
So, it should look like this: #!/usr/bin/ksh...
So, it should look like this:

#!/usr/bin/ksh

export MDIR=/datafiles

NAME=$1
SERVER=$2
DIRECTORY=$3
DATABASE=$4
ID=$5

SIZE=`/usr/bin/ssh -q $ID@$SERVER find $DIRECTORY -type d -exec du...
2,862
Posted By la_womn
Directory sizes loop optimization
I have the following script:

#!/usr/bin/ksh

export MDIR=/datafiles

NAME=$1
SERVER=$2
DIRECTORY=$3
DATABASE=$4
ID=$5

export dirlist=`/usr/bin/ssh -q $ID@$SERVER find $DIRECTORY -type d...
10,167
Posted By la_womn
Thank you! I added </dev/null to my code and it...
Thank you! I added </dev/null to my code and it works perfectly. I am going to look into shortening the code by using Jim's suggestions. Thank you both.
10,167
Posted By la_womn
Looping connect to different server
Hi there. I am attempting to write a script that will read through a flat file, get the server and directory that I want the size for, connect to the server, get the directory size, and send it to...
Showing results 1 to 13 of 13

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