Search Results

Search: Posts Made By: kailash19
Forum: Red Hat 09-22-2011
1,994
Posted By kailash19
Creating rpm package file
Hi,
I have a binary file ans some scripts which copy the binary file to a location and create some files and then add a entry to cron .

I want to create a rpm package file for all these.So that...
3,445
Posted By kailash19
Thanks a lot yazu.... wonder why i was not able...
Thanks a lot yazu.... wonder why i was not able to detect it.

Humans(like me) are so stupid sometimes :D
3,445
Posted By kailash19
Hi, I am using bash : here's the code: ...
Hi,
I am using bash :

here's the code:

#!/bin/bash

usage()
{
cat << EOF
usage: $0 options

This script genrates the report in xls format.

OPTIONS:
-h Show this message...
3,406
Posted By kailash19
Can you please post the error you getting.
Can you please post the error you getting.
3,445
Posted By kailash19
thanks latika ---------- Post updated at...
thanks latika

---------- Post updated at 05:48 AM ---------- Previous update was at 05:24 AM ----------

Question:

Why i cant use and( && ) as i did above?

Anyone can please explain to me?
880
Posted By kailash19
Hi, Cant understand what you trying to do. ...
Hi,

Cant understand what you trying to do.

If you want to match all characters
then

$ echo `expr match deepak '.*' `


use code tags :)
3,406
Posted By kailash19
Try this : !/bin/ksh #. /apps/comp/ ...
Try this :

!/bin/ksh
#. /apps/comp/

cd /apps/di/dev/import/paper
latest_file=`echo 'find /apps/qad/tst/export/di -name "*.csv"' | ssh hpqad02`
scp -p $latest_file...
3,445
Posted By kailash19
Multiple condition checking in bash
Hi All,
I am trying to check if two variables have value assigned to it.
i am doing it like

if [[ -n "$host_name" && -n "$host_file" ]]
then
echo "Please specify either single hostname or...
2,772
Posted By kailash19
Thanks sysgate for the info. I will look into...
Thanks sysgate for the info.
I will look into it.
2,772
Posted By kailash19
Adding a new user to Unix
Hi,

I have my new Unix machine setup. Its just have one user root.
I need to create a new user and add it to a group. I want this user to have privileges as root(run all command).
I know i need...
1,897
Posted By kailash19
Thanks Michael. It works :b: :). but...
Thanks Michael.

It works :b: :).

but for : who -a | awk '$6!="."{print}'

it should be : who -a | awk '$5!="."{print}'

Also i have thought of this one:
WHO=`who -um`;who -u | grep -v...
1,897
Posted By kailash19
Here is the output i get: who -u kailash ...
Here is the output i get:

who -u
kailash pts/0 2011-07-04 10:41 . 8336 (172.31.169.1)
kailash pts/1 2011-07-04 10:41 03:13 8442 (172.31.169.1)
kailash pts/3 ...
1,897
Posted By kailash19
Thanks pludi. but the problem is : like...
Thanks pludi.

but the problem is :

like the user "root" is being used by many users to login and i want to find that apart from me(current user ) who else have logged in with root.So just...
1,897
Posted By kailash19
Find who logged in system apart from myself
Hi,

I need to find the users logged in the system beside me.
as

uname -u

gives all the user and

uname -um
gives the current user on system.

How can i get result of uname -u minus...
3,817
Posted By kailash19
Thanks jim . But for sourcing no sub shell is...
Thanks jim .
But for sourcing no sub shell is created and it runs in parent shell.
So why script run as sopurce cant be used to change shell?

Is it that when i issue passwd command on machine, a...
3,817
Posted By kailash19
Difference between using Here document and Expect in scripts
Hi,

I am confused between using here document and using expect for writing interactive shell scripts(like changing password ,FTP or doing su).
My questions are :
1)Why here documents cant change...
21,734
Posted By kailash19
Thanks all for your replies. I used diff...
Thanks all for your replies.

I used diff for the rescue :) .

Discussion was knowledgeable.
Forum: What is on Your Mind? 09-23-2010
11,147
Posted By kailash19
In Bangalore, You can get paid higher. Again it...
In Bangalore, You can get paid higher.
Again it depends on the company u working. Some start-up companies might pay higher.
21,734
Posted By kailash19
Thanks fo reply. But no success , i dont have...
Thanks fo reply.
But no success , i dont have that swap file.

---------- Post updated at 04:57 PM ---------- Previous update was at 04:54 PM ----------

Well , yes there's option to save the...
Forum: What is on Your Mind? 09-22-2010
11,147
Posted By kailash19
In India you dont get paid as hourly. Its a...
In India you dont get paid as hourly.
Its a fixed component and paid per month.

As far i know it depends on the year of exp .
An average salary for a 3 to 4 yrs exp candidate is $800 to $1000...
21,734
Posted By kailash19
Check the changes made to file in vi
Hi,

I use vi editor in Unix.

Is there any way if we can know that what change was made to the file opened in vi before quitting?
As i opened a huge file made some changes yesterday and didnt...
4,054
Posted By kailash19
This can be done by capturing the output of ps...
This can be done by capturing the output of ps command and then storing it in a database table.
I use Perl DBI to store the results and then compute the desired output from it.

I use UNIX95...
49,430
Posted By kailash19
Thanks methyl for your reply. Will intimate...
Thanks methyl for your reply.

Will intimate the errors to my support ppl.
49,430
Posted By kailash19
Yes, you are right. The version is 11.23,...
Yes, you are right.

The version is 11.23, we use sendmail.

We have seen this type of errors:
"can not write to queue directory /var/spool/clientmqueue/ (RunAsGid=0, required=114): Permission...
49,430
Posted By kailash19
Yes, all my hosts are HP-UX. I mean is my...
Yes, all my hosts are HP-UX.

I mean is my mailx running fine(able to send mails or read).

I will be checking all hosts every 10mins(through cron), so cant send mails to a mailID every time...
Showing results 1 to 25 of 33

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