Search Results

Search: Posts Made By: sriram003
3,616
Posted By sriram003
Perl script to check uname options
I am trying to read the /etc/security/limits.conf file to match with my specifications.

Specification should match below :
nofile=131072
noproc=131072
memlock=3500000

I have written a perl...
1,247
Posted By sriram003
Thanks scott , theres a change in requirement...
Thanks scott , theres a change in requirement working towards that
1,247
Posted By sriram003
grep help
I want to have output of grep if not found should throw error:

For eg, below command if value not found will not throw error
$ ssh -q root@s22384.esco.com "ulimit -m | grep -E 450000"...
Forum: Programming 02-20-2012
1,857
Posted By sriram003
$output=patchlist -report all That runs a patch...
$output=patchlist -report all
That runs a patch command, output is like 32 lines.

---------- Post updated at 03:02 AM ---------- Previous update was at 03:01 AM ----------

I choose to call it...
Forum: Programming 02-17-2012
1,857
Posted By sriram003
while loop perl
I am trying to create a success and fail as below in a perl script :

while echo$? is 2 it should append as below to .fail file

=====================
if ( open(IN, "$outputfile"))
{
...
2,602
Posted By sriram003
that will completely rename ... I only want to...
that will completely rename ... I only want to replace lines which is found ... the other lines in the file will be as it is.
2,602
Posted By sriram003
yes looks good ... how do i replace it in actual...
yes looks good ... how do i replace it in actual file rather than a new file >> does not work
2,602
Posted By sriram003
No , :( ,, Let me be more clear and explain...
No , :( ,, Let me be more clear and explain you... file1 contains 10 entries , all entries are seperated with = sign, file2 contains 100 entries... all i want is if any lines starting before = sign...
2,602
Posted By sriram003
Value not changed : ...
Value not changed :

sriram@ubuntu:~/perl/Awk$ awk 'BEGIN{FS=OFS="="}NR==FNR{a[NR]=$NF;next}{$NF=a[FNR]?a[FNR]:$NF}1' file1 file2
value=value1
value2=value3

sriram@ubuntu:~/perl/Awk$ cat file1...
2,602
Posted By sriram003
Replacing string values from a File
I want to replace string values from a file to a file

For eg : File1 has 30 lines of string with values, those specific values needs to be changed in file2 and remaining values in file2 should be...
10,629
Posted By sriram003
@ubuntu:/tmp$ cat test 100 100 100 100 ...
@ubuntu:/tmp$ cat test
100
100
100
100

perl -pi -e 's/100/200/g' test


@ubuntu:/tmp$ cat test
200
200
200
200
3,368
Posted By sriram003
Help on DHCP
Hi All,



I am trying to configure dhcp server on a linux host with eth0:1 which is using 192.168.1.10

I also want to restrict my DHCP client to just one Host adcnew222.


DHCP Server...
6,152
Posted By sriram003
Thanks a ton sulti ....
Thanks a ton sulti ....
6,152
Posted By sriram003
Wget exit code for each line in file
I am trying to validate links inside file if its up or not.

Heres what I am trying :


#!/bin/bash
link='cat url'
get=$(wget -q "$link")
if [ "$get" -ne 0 ]
then echo "Link not up"
...
21,528
Posted By sriram003
Usually after sucessfull oracle xe installation...
Usually after sucessfull oracle xe installation you get:
"Install completed sucessfully", not sure what was your status.

Try:


reboot your system





then set the env and try...
3,260
Posted By sriram003
if you are not comforatble using ftp in browser,...
if you are not comforatble using ftp in browser, then try <winscp software> ftp session, once you connect it can list folders with size on ftp server.
Forum: Linux 02-02-2011
14,729
Posted By sriram003
Thanks for your help pludi. No 500 GB is for...
Thanks for your help pludi.

No 500 GB is for another team, so could only use 500gb of it,

But you know, what i could do is i needed the 500 GB for xen virtualistaion

So heres what i did:
...
Forum: Linux 01-27-2011
14,729
Posted By sriram003
Overlooked thanks :) ---------- Post updated...
Overlooked thanks :)

---------- Post updated at 06:36 AM ---------- Previous update was at 06:21 AM ----------

yes just saw once rebooted all vanished :(. i am not entitled to use the whole of...
Forum: Linux 01-27-2011
14,729
Posted By sriram003
Sorry I am back to work just now, yesterday was a...
Sorry I am back to work just now, yesterday was a holiday for us.

I have not yet got the machine back to test it.

Ok here I am listing down what you said,

1) Create an image file...
Forum: Linux 01-25-2011
14,729
Posted By sriram003
Thanks a lot, I think i made a mistake...
Thanks a lot,

I think i made a mistake here.

After creating the disk
dd if=/dev/zero of=/FAW/vms/linux_vm/disk2.img bs=1 count=1024 seek=500G

I created a file system:

mke2fs disk2.img...
Forum: Linux 01-25-2011
14,729
Posted By sriram003
Hi Pludi, # losetup -sf...
Hi Pludi,

# losetup -sf /FAW/vms/linux_vm/disk2.img
losetup: invalid option -- s

So i did:
losetup -f # find unused
# losetup -f...
Forum: Linux 01-25-2011
14,729
Posted By sriram003
Creating Filesystem using DD for LVM
I created a new filesystem using dd and mounted:

I have a filesystem /FAW with 1Terra space
/dev/sdb1 1151331444 24742604 1068104612 3% /FAW



Steps I followed to create a new...
2,915
Posted By sriram003
Thanks you amit and Pludi,
Thanks you amit and Pludi,
2,915
Posted By sriram003
Coverting Firstname <Space> Lastname into email id
I have a file like below :

bash-2.03$ cat neweamil2

Nigueel Rafferty
Thomas333 Middletonsss
Shwaita33 Ambasss
Zhi21 Caiss
Saluweh Husain
Nigueel Rafferty
Saleuikh Husainse...
6,793
Posted By sriram003
its solved
I missed

1) single;;

2) multiple;;


Thanks,
Showing results 1 to 25 of 55

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