Search Results

Search: Posts Made By: lookinginfo
4,029
Posted By lookinginfo
Thanks everyone for their inputs. the below...
Thanks everyone for their inputs.

the below commands done the job. :)
find /local/home/app/cases -iname '*\.sh' -type f -exec chmod -c 744 {} \;
4,029
Posted By lookinginfo
[Solved] Change permission on a file recursively
Hi,

this is the structure of the directory

/local/home/app/cases

under cases directory, below are the sub directories and each directory has files.

/local/home/app/cases/1
...
20,625
Posted By lookinginfo
addition of two numbers
by the script, two files Q1 and Q2 will be generated on the system. Q1 will contain an integer number and Q2 also contain an integer number. i would like to add those numbers and put into new file.
...
2,218
Posted By lookinginfo
how to check existance of multiple directories
Hi,

I would like to check whether all the directories exists or not. I tried the below but it gives some error. below is the excerpt from my original script
24 #Check if the required...
2,054
Posted By lookinginfo
print command in awk
Hi

can print command in awk take the variable and write its value in the file?

Excerpt from my shell script. for some reason, $proc is being written in the file instead of its value. can...
5,622
Posted By lookinginfo
Thanks all to provide the useful information. ...
Thanks all to provide the useful information.

Let me give some more background

There are two physical servers which are tie to a SAN disk. One server is active[A] and the other is...
5,622
Posted By lookinginfo
shell script to replicate the log files from one location to another in real time
Hi,

On the server, we have app log files in this location /app/logs/error.log
On the same server, in a real time, we would like to replicate that into /var/ directory.

if someone has already...
8,423
Posted By lookinginfo
so far i have come up with the following ...
so far i have come up with the following
TODAY=`date +%d/%m/%y`
CURTIME=`date +%H:%M:%S`

#go to that directory
cd /local/home/userid/logs

#check the file size
ls -ltr sw_warn.log >...
8,423
Posted By lookinginfo
Shell script to copy a log file if it exceeds 5000000 bytes
Hi,

on unix box, under /local/home/userid/logs folder, apps generated the following files

sw_warn.log
sw_error.log
eaijava.log

if there any application specific errors, the above file...
10,413
Posted By lookinginfo
how to encrypt a password in shell script
Hi,

I have run the below script which is connected to db2 v9.5. There is no issue. The only problem is how to encrypt the dbpwd?
#!/bin/ksh
#---- Set Environment
dbalias="dev1db"...
85,834
Posted By lookinginfo
I haven't tried the corrected syntax which you...
I haven't tried the corrected syntax which you have provided. Thats no a daemon. its a script which start something.

The goal is:

1) connect to server2
2) cd to this location...
85,834
Posted By lookinginfo
Thanks. it works with "" instead of coping...
Thanks. it works with ""

instead of coping the file, now i have to execute a command on server2. i did the following but nothing start on server2

mike@server1>ssh mike@server2 ". ~/.profile...
85,834
Posted By lookinginfo
how to connect from one server to another
Hi,

using ssh [putty], i login to this server [server1]

being on this server, i would like to connect to server [server2] so i did the following:

mike@server1:~/tmp> ssh mike@server2 echo...
5,851
Posted By lookinginfo
Thanks a lot folks !!!! :)
Thanks a lot folks !!!! :)
5,851
Posted By lookinginfo
how to save an output of a command in a variable
Hi,

in shell script, i have the command swstart -p which returns an output. i want to store the output of this command into a variable. how i can do that

excerpt from the script
...
2,394
Posted By lookinginfo
Thank you.
Thank you.
2,394
Posted By lookinginfo
user and its group
Hello,

is there any command which can show a particular user "xyz" is belongs to how many groups

thanks
2,785
Posted By lookinginfo
how to find a content in all files
Hi,

i would like to find 'AppManage' in all files. i have tried the following but it didn't work.

/local/home/mani>grep -iR 'AppManage' *.* - not outcome
/local/home/mani>grep -iR 'AppManage' ...
2,878
Posted By lookinginfo
i have two main questions. how to put sudo...
i have two main questions.

how to put sudo in the script
how to take input while running the script
2,878
Posted By lookinginfo
shell scripts for linux SLES 10
Hi,

could someone help me to create the following scripts

Need to create couple of shell scripts on LINUX SLES 10

Using my id
---------------
First script – this script should...
6,478
Posted By lookinginfo
Thanks a lot folks.
Thanks a lot folks.
6,478
Posted By lookinginfo
Shell script to run x times
Hi,

First i need to cd to this directory $SWDIR/util
Second i need to run the following either 4 times or 20 times

./swadm add_process 1 BG Y

how can i put this in a script which should ask...
Showing results 1 to 22 of 22

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