Search Results

Search: Posts Made By: atanubanerji
Forum: Programming 11-19-2017
9,794
Posted By atanubanerji
Thank you very much Andrew !! Appreciate your...
Thank you very much Andrew !! Appreciate your advice.
Forum: Programming 11-17-2017
9,794
Posted By atanubanerji
Thank you very much Robin for your help. I...
Thank you very much Robin for your help.

I have to execute some action if the server is CentOS.

The server_description variable may or may not store CentOS key word among few other words. So...
Forum: Programming 11-17-2017
9,794
Posted By atanubanerji
Python - store output of command to a variable
I am trying to store output of python command in variable. Could you please help how I can do that ?

For example I am executing the following command - "CentOS" in server_desc
The output would...
24,941
Posted By atanubanerji
Got the answer from other threads.. echo...
Got the answer from other threads..


echo "{\"javapath\" : \"$JAVAPATH\"}"


:)
Thanks
24,941
Posted By atanubanerji
Printing double quotes in echo command
Please help me to use echo or printf type of command to print some value from variable within double quotes - I want to print the double quote ( " ") also.

I tried

#!/bin/bash...
6,013
Posted By atanubanerji
Thank you so much RudiC for the advice. Yes we...
Thank you so much RudiC for the advice. Yes we will try to make it secure. I tried ssh-add, sshpass, keychain.... but nothing is working.

Please advice.

---------- Post updated at 06:50 AM...
6,013
Posted By atanubanerji
Supply passphrase for ssh in script
I would like to write a bash shell script which will connect to remote server using passphrase. (I have public-private infrastructure created, and as per instruction, I must not use password less...
Forum: Red Hat 10-17-2015
4,144
Posted By atanubanerji
Network Teaming not working in RHEL/CentOS 7
I was testing Networking Teaming (activebackup) with a VM hosted on VmWare Workstation and VirtualBox, and the result is, if the active interface is down, the system is not using the backup...
1,073
Posted By atanubanerji
Hello Peasant Actually I was searching the...
Hello Peasant

Actually I was searching the easiest way to get the job done....some thing like ..
sh myscript.sh <dir_name> -w <value> -c <value>
Where <dir_name> is mandatory, and values...
1,073
Posted By atanubanerji
Script to execute with switch
Hello
I want to create a script which will require a mandatory value and optional values which can be supplied using switch. If optional values are not supplied, the script will use the default...
3,553
Posted By atanubanerji
You can try something like this ... ...
You can try something like this ...

#!/bin/bash
read -p "Enter the username : " x
U=$(( `cat /etc/passwd|cut -d: -f3|sort -nr|head -1` + 1 ))
useradd -u $U $x
Forum: Red Hat 06-16-2015
2,459
Posted By atanubanerji
Failed to su to user
I am unable to su to functional user, though changed the soft-hard limit for open files in limits.conf.
The following command did not help.ulimit -n <value>While su to user, the error I am getting...
10,276
Posted By atanubanerji
Bash shell script with mandatory and optional input
Hello
I would like to write a bash shell script which will need user to supply one variable which is mandatory and some other optional variables. If mandatory variable is not supplied by user, the...
5,690
Posted By atanubanerji
Call function as different user within the script
Hello

For HP-UX, ksh shell, is it possible to define functions and call them by another user ? For example

<function_name> ( ) {
command1
command2
}
su - <user> -c <function_name>


Or...
Forum: Red Hat 04-27-2015
1,561
Posted By atanubanerji
There was a typo mistake in authorized_keys. ...
There was a typo mistake in authorized_keys. Corrected.

Thanks
:D
Forum: Red Hat 04-27-2015
1,561
Posted By atanubanerji
Yes. The same is being used for other servers.
Yes. The same is being used for other servers.
Forum: Red Hat 04-27-2015
1,561
Posted By atanubanerji
Ssh error
ssh -q <remote_server> <command> is not working for only one remote server.

From the source, we are able to connect other servers using the above command but one. All the servers are in same...
Forum: Red Hat 11-08-2014
15,738
Posted By atanubanerji
Yum is not working - certificate expired error
In my RHEL 5.3, i686 server, I am facing the following error, whenever I am using any yum command -

"up2date_client.up2dateErrors.SSLCertificateVerifyFailedError: The certificate is expired....
Forum: Red Hat 10-24-2014
8,619
Posted By atanubanerji
It is Apache. Giving some outputs.. ...
It is Apache. Giving some outputs..

[root@rhel6 ~]# df -h /var/www/html
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg1-lv1 7.9G 4.8G 2.8G 64% /var/www/html
...
Forum: Red Hat 10-24-2014
8,619
Posted By atanubanerji
Httpd service not starting... Error "Documentroot must be a directory"
I am working with CentOS 6.5.
Indeed the document root /var/www/html is a directory and it is a mount point of one file system (not NFS)
I observed, if I unmount that file system, I could able to...
2,090
Posted By atanubanerji
Thank you very much guys for sharing your...
Thank you very much guys for sharing your thoughts. This time I am using Rbatte1's solution.

Cheer.
2,090
Posted By atanubanerji
Submitting cron job through script
I would like to run a script, as root, which will eventually set up cron job for a non privilege user. Please advice.
Forum: Red Hat 05-21-2013
1,573
Posted By atanubanerji
1. Use parted /dev/disk_name 2. Execute print ...
1. Use parted /dev/disk_name
2. Execute print
3. Identify the partition ID/number of the partition you want to resize
4. Execute resize <partition number> <start_size_in_MB> <end_size_in_MB>...
Forum: Red Hat 05-20-2013
1,502
Posted By atanubanerji
Mulitpath user-friendly name is correct
We have device mapper multipath configured. multipath -ll is showing things correctly. But when ever we are executing lvm related command, say pvs, it is showing /dev/mpath/<wwid> number instead of...
Forum: Red Hat 05-03-2013
4,348
Posted By atanubanerji
It works !!! Thank you very much.
It works !!!
Thank you very much.
Showing results 1 to 25 of 43

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