Visit Our UNIX and Linux User Community

Search Results

Search: Posts Made By: Siddheshk
2,631
Posted By Siddheshk
HI, --remove-source-files is only applicable...
HI,

--remove-source-files is only applicable for files. I need to remove directories too.

-S
2,631
Posted By Siddheshk
Move directory with rsync and delete from source
I need a rsync command which will exclude certain files and directories from source and copy the rest. I got this command working,


sudo rsync -avzh --exclude 'bin' --exclude 'braintree'...
551
Posted By Siddheshk
Hi, Thanks for the reply. Adding space...
Hi,

Thanks for the reply. Adding space before and after fixed one part but i want the corresponding value in double quotes. With the suggested change my script looks like this,


sudo...
551
Posted By Siddheshk
Help With Json Code
Hello Experts,

I have written a code to bootstrap my application and it is failing becasue it is not executing as expected. Command is as follows in my json template,


"UserData" : {...
2,446
Posted By Siddheshk
Hi, We are using the Zimbra and it does not...
Hi,

We are using the Zimbra and it does not fetch all the parameters from AD. so i need to write a script to get the required data.

-S
2,446
Posted By Siddheshk
Script to extract data from Active Directory and import in Zimbra Ldap
Hello Experts,

I have this specific requirment where i need to download/extract from AD (Firstname, LastName, etc) and upload the same to Ldap used by Zimbra mail server running on Suse Linux.
...
599
Posted By Siddheshk
Date change in Linux
Hi Team,

I am trying to change a date in linux with a tomcat user and it is failing due to some reason. the code so far is,


echo "pl. provide the date to change"
read userdate
if [...
1,314
Posted By Siddheshk
But this will ask for root password...Can this be...
But this will ask for root password...Can this be automated too? As in taking the input from a file or something like that?

-Siddhesh
1,314
Posted By Siddheshk
Script to run commands as root user
Hello I have a script which is working fine so far to generate HTML file. Now i am wondering how do i include a syntax where it can change itself to root user and execute a specific commands as root...
3,206
Posted By Siddheshk
Well i wish to include these in script...
Well i wish to include these in script itself....how do i do that?

I am trying to use this, but it does not work. is there anything wrong in this?


hr=`date +%H%M`
if test $hr -gt 0010 -a $hr...
3,206
Posted By Siddheshk
Script to run commands at a specific time.
Hello All,

I have written a script which which is working fine to a certain logic of it. But i want a part of the script to run two commands at 00:10 hrs every day. These two command are


1....
7,122
Posted By Siddheshk
Script To Generate HTML output
Hello All,

I need help here with a script. I have a script here which generates a html output with set of commands and is working fine.

Now i want to add a new command/function which would run...
1,393
Posted By Siddheshk
[Solved] High CPU utilization
Hi,

i am observing few processes taking high CPU and when i got some more detials about them it looks like this


PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
9452 xmp...
2,747
Posted By Siddheshk
I am running this with "xmp" user. so adding...
I am running this with "xmp" user.

so adding . /etc/profile will solve this?

-Siddhesh

---------- Post updated at 11:05 PM ---------- Previous update was at 10:58 PM ----------

Well I...
2,747
Posted By Siddheshk
Hi, i am not able to redirect the output of...
Hi,

i am not able to redirect the output of "radstat" command to a file i mentioned. i am running this script through cron.

here is the complete script.


#!/bin/bash
...
2,747
Posted By Siddheshk
Hi, I got that working. Now the problem is ...
Hi,

I got that working. Now the problem is


/home/xmp/bin/radstats > /home/xmp/bin/radstats_output.txt
ACTIVE_PSE_COUNT=`grep "Current number of Active Requests to the PSE"...
2,747
Posted By Siddheshk
Script to restart process
HI,

I am trying to write a scrip which would restart active process. This is what i have written till now.

[xmp@tswebptcadmin ~]$ xms show pr PRESE.*
NAME STATUS ...
658
Posted By Siddheshk
Script to monitor Values
Hi All,

I want a scrip to monitor values which is the out put of a certain command. Example is


[xmp@tswebpxmpadmin ~]$ for (( c=1; c<15; c++ )); do cmu -O HTA -d HTTP-PROXY.tswebpxmp5.$c |...
1,605
Posted By Siddheshk
Help with netstat
Hi,

I want to list the time for how long a secure connections last to my server/blade. i am using netstat command to get the same, but not sure how to get the time for how long connections is...
1,561
Posted By Siddheshk
Hello That worked well. I also have a...
Hello That worked well.

I also have a IP_LIST file which has ip addresses defined for all node. how do i get this sed command u use the same.

It works for me without "read" variable

...
1,561
Posted By Siddheshk
Let me explain you step by step. 1. There is...
Let me explain you step by step.

1. There is a file /opt/adapter/Adapter/snmp/conf/snmpd.conf which has a variable as

rocommunity public
rocommunity6 sp1der

2. I want to use replace the...
1,561
Posted By Siddheshk
#Defining Variable #------------------------ ...
#Defining Variable
#------------------------
IP_LIST=/root/IP_LIST
ADAPTER_HOME=/opt/adapter
SNMP=/opt/adapter/Adapter/snmp/conf/snmpd.conf
BACKUP_DIR=/var/tmp
DATE=`date +%Y%m%d%H%M%S`...
1,561
Posted By Siddheshk
Well i tried the same. the script runs...
Well i tried the same.

the script runs succesfully but the value is not replaced to i pass on when prompted for.


[root@Mediaspire siddhesh]# ./rommonity_new.sh...
1,561
Posted By Siddheshk
may be i did not explain well.. here is the...
may be i did not explain well..

here is the live example..


read -p "Enter your name of rocommunity string you wish to set and press [ENTER]: " string

sed -i...
1,561
Posted By Siddheshk
Help with SED
Anyway, i'm writing a shell script and i read in input with the following:
read $foo


i now want to use this variable in my sed string replacement like so:
sed -i 's/replaceme/$foo'...
Showing results 1 to 25 of 113

 

Featured Tech Videos

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