Search Results

Search: Posts Made By: moe458
1,401
Posted By moe458
I guess it got it to work ..thank you guys:) ...
I guess it got it to work ..thank you guys:)



pat01=`uname -a | awk '{printf "%s", $2}'`

#if it is server 1 run this file
if [ $pat01 == "cpcmlt01" ] ; then
echo "run this file"

#if...
1,401
Posted By moe458
run the file based on environment
Hi,

I needed to run a script based on the environment..I'm just having some issue with the script..can someone help me ?



#!/bin/ksh
pat01=`uname -a | awk '{printf "%s", $2}'`

#if it...
1,010
Posted By moe458
RS_abc.20050512.csv RS_abc.20050512.csv.done ...
RS_abc.20050512.csv
RS_abc.20050512.csv.done
RS_abc.20050612.csv
RS_abc.20050612.csv.done
RS_abc.20050712.csv
RS_abc.20050712.csv.done


something like that..done file only exists so...
1,010
Posted By moe458
find corresponding files
I have bunch of CSV and Done files in a folder. Each csv has a corresponding done file which has been processed.

How can I find the csv which is not processed out of a directory. I must have...
4,383
Posted By moe458
thanks for your response :) sed always gives me...
thanks for your response :) sed always gives me the buzz lol...
Okay just a bit confused where echo "$DB_PASSWD followed by the select..
Trying to understand since i'm just selecting for now..but i...
4,383
Posted By moe458
database instance Error capture
I wrote a script to capture some rows from the DB.
However I want to capture the errors if the DB instance is down which usually produces errors like below. What should be my approach to kill...
3,896
Posted By moe458
ctsgnb & Robin thanks guys..u guys are great.. ...
ctsgnb & Robin thanks guys..u guys are great..
my code worked fine just had to tweak it up a bit...i'll take that cat suggestion..didn't think about thanks to both of u :) Moe
3,896
Posted By moe458
Thanks that worked just fine :)
Thanks that worked just fine :)
3,896
Posted By moe458
hmmm.. still having some issues maybe u can see...
hmmm.. still having some issues maybe u can see what could it be :


#!/bin/ksh

#file reference
file="b.tc"

#linecount
linecount=`wc -l $file | awk '{print $1}'`
echo "Line count before :...
3,896
Posted By moe458
Delete # of Lines after counting
I'm trying to write a script to clean up log file automatically when it reaches 1000 lines. I can't get this to work..can some help me please :)
Server: SunOS 5.8 Generic_117350-53 sun4u sparc...
6,110
Posted By moe458
chmod +x ./run-tests # try to remove the slash...
chmod +x ./run-tests # try to remove the slash from there and then try

like this -> chmod 777 run-tests
6,863
Posted By moe458
aah yes that worked...thank you sir :)
aah yes that worked...thank you sir :)
6,863
Posted By moe458
SunOS 5.8 Generic_117350-53 sun4u sparc...
SunOS 5.8 Generic_117350-53 sun4u sparc SUNW,Sun-Fire-V490
6,863
Posted By moe458
hmmm..not sure that worked ls -ltr |...
hmmm..not sure that worked


ls -ltr | awk '$8~"2007"{system("mv "$9 " remove")}'
awk: syntax error near line 1
awk: bailing out near line 1


I have the files there still

-rw-r--r-- 1...
6,863
Posted By moe458
Awk & Move
How can I move all files from last year. I wrote the comamnd but not working.

ls -ltr | awk '{if($8~/2009/)print "mv "$9 " remove"}'
2,592
Posted By moe458
I'm able to run the query in the sybase and it...
I'm able to run the query in the sybase and it works fine but when i try to put it in the script it gives errors..not sure what the problem is..i get the following error


sunos-moe > cleanup.sh...
2,592
Posted By moe458
Table Cleanup Script
I needed some help with a script to fetch and delete all records prior to 3 days from now connecting to sybase from sunos. I wrote the following script but not working..can someone please guide me...
6,661
Posted By moe458
Thank you sir that work like a charm.
Thank you sir that work like a charm.
6,661
Posted By moe458
ohh mother...let me try that..lmao
ohh mother...let me try that..lmao
6,661
Posted By moe458
Checksum with file permissions and dates ?
find . \! -type p -exec cksum {} \; >> check.out


Okay i was able to get the checksum of the files of the directory and sub directories..how do I get the list with the checksum and the file...
11,679
Posted By moe458
got the baby going..lol.. ran it from the home...
got the baby going..lol..
ran it from the home drive..and bam
find . \! -type p -exec cksum {} \; >> check.out
11,679
Posted By moe458
cksum for all files in home directory
I know i can run cksum <filename> . However, how i can run cksum on all the files and directories in the $HOME ?? (SUNOS)
5,386
Posted By moe458
vmstat -s try that ..should give u swap...
vmstat -s

try that ..should give u swap info.
1,672
Posted By moe458
check for session keep alives time outs and...
check for session keep alives time outs and etc...that's could be the case...
22,352
Posted By moe458
Advantages of Unix - Unix is more flexible...
Advantages of Unix

- Unix is more flexible and can be installed on many different types of machines, including main-frame computers, supercomputers and micro-computers.

- Unix is more stable...
Showing results 1 to 25 of 25

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