Search Results

Search: Posts Made By: quigley007
30,200
Posted By quigley007
Here is the script I am calling : ...
Here is the script I am calling :


#!/usr/bin/ksh
#
echo "hi..."
exit 5


When I run it as the user it echos hi... and returns a 5. the only exit status it seems to be capturing is the 0...
30,200
Posted By quigley007
One of the things I tried was sticking it in a...
One of the things I tried was sticking it in a file, and reading it from the file:


sudo su - $User << EOF >> $output_file
echo 99 > $output_error_file1
$Script
echo "$?" > $output_error_file1...
30,200
Posted By quigley007
Exit Status within sudo su - $user
I am having a problem reading the exit status of a command or script within a sudo.



return_code=99

sudo su - $User << EOF >> $output_file
$Script
return_code=$?
exit $return_code
EOF...
6,819
Posted By quigley007
Here is a sample of the code I should have...
Here is a sample of the code I should have supplied to begin with:

## Truncate Log
LogMax=5000
LogLines=12
while [ "`wc -l $LOGFILE | awk '{print $1}'`" -gt "$LogMax" ]
do
sed...
6,819
Posted By quigley007
ksh - truncate a log in place, sed -i not available captain!
Hi there:)

Because of security requirements, It would be much better if I could truncate my logs in place using sed -i (or ?). I cant use the -i option on sed in my environment.

Can anyone help...
6,089
Posted By quigley007
You probably already know, but make sure you have...
You probably already know, but make sure you have up to date data from spaceused - The info is only as good as the last time update stats was run on the table.

sp_spaceused displays estimates of...
Showing results 1 to 6 of 6

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