Search Results

Search: Posts Made By: manoj_dahiya22
10,622
Posted By manoj_dahiya22
Hi vgersh99, Yep . This syntax works fine...
Hi vgersh99,

Yep . This syntax works fine in /bin/bash
10,622
Posted By manoj_dahiya22
Thanks sir. with this shell, did not get that...
Thanks sir.
with this shell, did not get that error. But getting beow error

./createid.sh[103]: userid=${fname:0:1}${lname:0:7}: bad substitution

fname : its taking first letter of first...
10,622
Posted By manoj_dahiya22
Thanks cfajohnson. actually script is very...
Thanks cfajohnson.

actually script is very long ( 1500 lines) .
actualy its working fine on all others servers (55 servers).

I am not getting the root cause of not working of it.

as te...
10,622
Posted By manoj_dahiya22
Error-- : " bad string"
Hi All,

wen i am running a script . its giveing the below error and hanging there

Bad string

*******************

Please enter the following details one by one...
71,917
Posted By manoj_dahiya22
Thanx Vidyadhar85 but its producing same...
Thanx Vidyadhar85

but its producing same result....!
please let me know the solution if you find any ..... because its reuired in my project . i need to send details of files greate than 1 MB
...
71,917
Posted By manoj_dahiya22
Important finding --- find files greater than 1 MB
as we can find file greater than 1 MB with find command as:

find /dir -name '*' -size +1M
find /dir/* -name '*' -size +1M

but wats its doing is , its finding files only in current directory...
Forum: Solaris 03-14-2009
8,678
Posted By manoj_dahiya22
Please help --setfacl: illegal option -- R
when i am executing

setfacl -Rm u:ggoyal2:rwx,m:rwx dir

i am getting error

bash-3.00# setfacl -Rm u:ggoyal2:rwx,m:rwx dir
setfacl: illegal option -- R
usage:
setfacl [-r] -f aclfile file...
5,165
Posted By manoj_dahiya22
Thanx Corona688. ctrl+c was not working . i...
Thanx Corona688.

ctrl+c was not working . i logout of the session and it stopped automatically. :)
3,108
Posted By manoj_dahiya22
Urgent-- mailx command
i want to send mail in bold

eg.

mailx -s " subject" manoj@yahoo.com << EOF
This is Body of mail
EOF

i want "This is Body of mail " in bold....

what is the solution?

Thanx in...
5,165
Posted By manoj_dahiya22
very urgent---mailx command
plsssssss help me

i m getting maid.

i fired below commands

while [ $cas != "num" ]
do

sso=501688351

echo "Hi ," >> file_send;
mailx -c manoj.dahiya1@ge.com -s " mail checking"...
Forum: Solaris 03-04-2009
18,898
Posted By manoj_dahiya22
finger <userid> :)
finger <userid>

:)
4,472
Posted By manoj_dahiya22
yes . i am digging into it. :) But now i am...
yes . i am digging into it. :)

But now i am concerned about

bash-3.00# sed '2i New line' file
sed: command garbled: 2i New line

i am searching for a small command for this. :(
4,472
Posted By manoj_dahiya22
Regarding script: I think its issue with...
Regarding script:

I think its issue with server. its mail feature might be disabled . i m checking more on that.
4,472
Posted By manoj_dahiya22
Thanx ripat. This soluntion looks good. very...
Thanx ripat. This soluntion looks good. very small and effective. :b:

but the command is not executing

bash-3.00# sed '2i New line' file
sed: command garbled: 2i New line


may you...
4,472
Posted By manoj_dahiya22
Hey it worked. Thanx so much.. i have one...
Hey it worked. Thanx so much..

i have one more question pls.

I fired a script named "ch"

i am getting the below error messages and its not working . as it should mail me some text after...
4,472
Posted By manoj_dahiya22
how to add text after a particular line on vi editor
hi

suppose i have file 0f 10 lines.

i want to add something after 8 line.

may i append it anyhow without opening file.

eg. i can appned at last.

echo text >> file

Thanks
7,864
Posted By manoj_dahiya22
sorry i am unaware of it. i was giving...
sorry i am unaware of it.
i was giving solution for unix.
I m not at all aware of dmidecode

:confused:
7,864
Posted By manoj_dahiya22
sorry , i think i am not getting ur exact...
sorry , i think i am not getting ur exact requirement.

we have a server--- sdetlab01

1)bash-3.00# hostname
sdetlab01
bash-3.00# model=`hostname`
bash-3.00# echo $model
sdetlab01
...
7,864
Posted By manoj_dahiya22
You can use model=`hostname` or ...
You can use

model=`hostname`

or

model=`uname -n`
Showing results 1 to 19 of 19

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