Search Results

Search: Posts Made By: successlin
Forum: Linux 10-31-2015
1,832
Posted By successlin
Umount is not reflecting in losetup.
Hi,

initially i will mount a image using loop device using below command
mount -n -o loop,noatime,ro -t squashfs /mnt/fsh/bt.img /opt/app/test

then "mount" reflects with below
/dev/loop0 on...
Forum: Red Hat 12-19-2011
3,051
Posted By successlin
We are having application such that different...
We are having application such that different versions of RH run on different partitions in same disk.
so we are dynamically creating grub.conf . and we want that grub.conf to be effective for next...
Forum: Red Hat 12-19-2011
3,051
Posted By successlin
Can we specify which grub.conf to use in grub-install.
Hi,
Can we specify which grub.conf to use while installing grub on RHEL.
We are working on application which requires different grub configurations needed, depending on certain criteria we need to...
1,570
Posted By successlin
compare versions.
Hi ,
I have versions something like 1.10.0 and 1.9.1 and i want to compare them.
I wrote sample program like below.

#!/usr/bin/perl
my $var1 = "1.10.0";
my $var2 = "1.9.0";
if ($var1 eq...
1,430
Posted By successlin
This is replacing all if-fi loops, so i changed...
This is replacing all if-fi loops, so i changed the command to,
sed -e 's|^if \[ "$asdf"|:<<COMMENT &|' -e 's|^fi|& COMMENT|'

this is modifying all "fi" statements.

How to change only that...
1,430
Posted By successlin
Need to comment some code via script
Hi,
I am writing a shell script, which should comment a if-fi loop in a file.
From google i found that, we can use below qualifier to comment a section of code,
:<<COMMENT

COMMENT
But i could...
Forum: Programming 01-07-2011
12,538
Posted By successlin
Perl regular expression to check string ending
Hi,
I am trying to write a regular expression in perl to check if the string end's with "numbers-numbers" or "-numbers".

I experimented something like m/\d*-\d*$/ , but this is not solving my...
Forum: Linux 12-02-2010
23,208
Posted By successlin
/usr/sbin/chpasswd -c < t /usr/sbin/chpasswd:...
/usr/sbin/chpasswd -c < t
/usr/sbin/chpasswd: invalid option -- c
Usage: chpasswd [options]

I think "-c" option is not there.

in the above command, t is the file having user:password
Forum: Linux 12-02-2010
23,208
Posted By successlin
chpasswd also expects some user input, i wanted a...
chpasswd also expects some user input, i wanted a way to set password in non-interactive way.
Is this posible?
Forum: Linux 12-02-2010
23,208
Posted By successlin
Set password in single command
Hi,
Can we set password for linux in non-interactive mode.
I didn't find suitable option for this in man page.
If we wnter "passwd" command, it will tell "Enter password" and "Re-enter password"....
Showing results 1 to 10 of 10

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