Search Results

Search: Posts Made By: illcar
3,539
Posted By illcar
how to return cygwin output to DOS
Hi,

I have installed cygwin on my windows XP system. And I am trying to use the following code snippet:
set SERVER="grep JDBCConnectionPool config.xml | gawk -F; '{print $2}'"
sed -i...
Forum: Solaris 03-06-2009
5,958
Posted By illcar
That's great, DukeNuke2! Thanks.
That's great, DukeNuke2! Thanks.
Forum: Solaris 03-06-2009
5,958
Posted By illcar
kstat on T5220
We used kstat on netra240/440 to check if the link is full duplex. So we do something like:

bash-3.00# kstat -pc net bge:1::/'link_duplex'/ | cut -f2
2

The output 2 indicates the link is...
2,454
Posted By illcar
Expect program with password as arg
Hi,

I have written Expect script that takes root password as argument, and executes another script. The another script prompts for password, which Expect feeds. But Expect shows the password on...
4,507
Posted By illcar
Actually the following works well: su -...
Actually the following works well:


su - oracle -c "/global/home/orasql/MYSID/doSomething.sh"

if [ $? -ne 0 ]; then
echo "Error running doSomething.sh"
fi


I can now get status from...
4,507
Posted By illcar
That works :) Preferably I want status code...
That works :)

Preferably I want status code so that I can exit from the main script depending on the status code.

Thanks again.
4,507
Posted By illcar
need to know status from "su -c"
Hi,

I am executing a script as root user which needs to do something as oracle user.

So I have following in my script:


#!/bin/sh
..........
..........
su - oracle -c "export...
1,861
Posted By illcar
Thanks, nawk did the trick.
Thanks, nawk did the trick.
1,861
Posted By illcar
I am sorry, I am still having issues. I changed...
I am sorry, I am still having issues. I changed the code as follows:


myMethod
used=`myMethod | awk '{gsub(/,/,""); print $3}'`
echo $used


Now I get a different error. If it is not...
1,861
Posted By illcar
string manipulation issue
I have myMethod that gives me available,used,free disk space in KB. I parse the used disk space using awk. That gives me something like 830,016. I want the output to be 830016 so that I can add...
Showing results 1 to 10 of 10

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