Search Results

Search: Posts Made By: runnerpaul
Forum: SuSE 06-28-2011
2,492
Posted By runnerpaul
my SQL Info command
Is there a command that will output all mysql details. eg. host name, port etc?

Cheers
Paul
1,269
Posted By runnerpaul
Update strings in text file
I have a txt file that contains multiple occurrances of:

<MoreFlag>Y</MoreFlag>

I want to update these to:

MorePACFlag>Y</MorePACFlag>

How would I do this?


Cheers
Paul
1,335
Posted By runnerpaul
Cheers zaxxon. That pointed me in the correct...
Cheers zaxxon. That pointed me in the correct direction. Changed my script to the following and no get the results I wanted:

paexpire=`sqlplus -s m@MAT/$PASS << EOF
set heading off feedback off...
1,335
Posted By runnerpaul
Mail text appending to previous mail text
The following is an extract of code I wrote to produce an email report of accounts that are about to expire.

It works fine except each time I run it the output is appended to all text from the...
Forum: Programming 01-25-2011
6,968
Posted By runnerpaul
[:digit:]
Hi,

Does anybody know what the below means:

[:digit:]

I have a program containing the following and am trying to understand what it does:

temp=$(echo $count2 | tr -cd [:digit:])

Cheers...
25,031
Posted By runnerpaul
All work. Cheers folks.
All work. Cheers folks.
25,031
Posted By runnerpaul
Grep command to show only process name
Can I modify the grep command to show only a process name?

Currently I run ps -efa | grep chk_web to get the following:

mousr 3395 1 0 09:36:06 pts/10 0:00 sh...
2,948
Posted By runnerpaul
Got sorted. Cheers guys.
Got sorted. Cheers guys.
2,948
Posted By runnerpaul
Shutdown Script
Im writing a script to read a file called shutdown.cf and shut down any scripts that are listed there.

I have came up with the following based on things I saw in similar programs but it doesn not...
1,252
Posted By runnerpaul
Thanks for your replies. One more thing. I...
Thanks for your replies.

One more thing. I just found out that I will need to copy my updated file name to a folder on a windows server. Am I correct in thinking I will need to FTP it?
1,252
Posted By runnerpaul
File copier script
Hi

I am trying to write a shell script that will check a directory for a file/files. If any are present it will copy the file to a different directory and append a unique number to theend of the...
13,109
Posted By runnerpaul
Echo - Sending mail to multiple addresses
Hi,

If I want my script to send a mail to multiple recipients I can do the following:


if [ `echo $err_string1 | wc -c` -gt 1 ]
then
echo $err_string1 | mailx -s "UAT CPU...
Forum: Solaris 05-21-2010
5,686
Posted By runnerpaul
Excellet. Thats exactly what I need.
Excellet. Thats exactly what I need.
Forum: Solaris 05-21-2010
5,686
Posted By runnerpaul
Direct/scsu access to unix account
Hey

Is there any way to differentiate if a user is logged directly into a UNIX functional account or if they have scsu'ed into the functional account?

Cheers
Paul
Forum: Solaris 05-20-2010
2,079
Posted By runnerpaul
Oracle. I had thought of a trigger...
Oracle.

I had thought of a trigger restricting this but have an application which also uses the functional login to access the database and cant have that restricted.
Forum: Solaris 05-20-2010
2,079
Posted By runnerpaul
Restricting access to functional database account through unix
Hi,

At present there is a functional database account which can be accessed when logging in through a unix server. At present it can be accessed through from any UNIX account on this server. Is...
1,729
Posted By runnerpaul
Script problems
Hi Can anybody please explain how the below script works and if there is any problems with it? The script is part of an archival process but it keeps crashing out.

#!/sbin/sh -
clear...
11,591
Posted By runnerpaul
Apologies I meant directory.
Apologies I meant directory.
11,591
Posted By runnerpaul
Does this not just look for a file with that name...
Does this not just look for a file with that name in it?
11,591
Posted By runnerpaul
Grep alternative to handle large numbers of files
I am looking for a file with 'MCR0000000716214' in it. I tried the following command:

grep MCR0000000716214 *

The problem is that the folder I am searching in has over 87000 files and I am...
Forum: Solaris 10-20-2008
22,230
Posted By runnerpaul
When I run: jar tf jps.jar > /tmp/paul/jpsjar ...
When I run:
jar tf jps.jar > /tmp/paul/jpsjar

I get the following:
/tmp/paul/jpsjar: Is a directory

Am I doing something wrong?
Forum: Solaris 10-20-2008
22,230
Posted By runnerpaul
Differences between jar files
I want to find the difference between two jar files sitting on a sun box. How do I do this?
7,648
Posted By runnerpaul
#!/sbin/sh - log() { /usr/bin/echo "$1"...
#!/sbin/sh -
log() {
/usr/bin/echo "$1" >> ${LOGFILE}
}
LOGFILE=/var/tmp/Paul/scripts/chk_scripts.log
ps -efa | awk '/[c]hk/ { print (substr($0, 48)) }' |
while read line
do
if fgrep -x...
7,648
Posted By runnerpaul
OK, Cheers. I dont know what Kron is(yet)...
OK, Cheers.

I dont know what Kron is(yet) but will def check it out. In the meantime if you know any good links that you could point me to it would be appreciated.
7,648
Posted By runnerpaul
Cheers. Im now trying to get it on a 5 min...
Cheers.

Im now trying to get it on a 5 min loop. What im trying to do is for my check to run every 5 mins. I had thought if I put a

sleep 300

betweeen the 'fi' and 'done' but that just...
Showing results 1 to 25 of 31

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