Search Results

Search: Posts Made By: onenessboy
9,449
Posted By onenessboy
Windows batch command for deleting particular pattern named folders in temp
Hi All,'

I need to write a windows bat program to delete particular folders with naming pattern scoped_dir45666 (for example)(including contents)
with batch program. For that I am using below...
3,670
Posted By onenessboy
thank you Don Cragun :) Now understood :)
thank you Don Cragun :) Now understood :)
3,670
Posted By onenessboy
-gt option in UNIX
Dear All,

Trying to understand below portion of one existing script
RESTOREPOINTS = 3 which is being passed as run time parameter.
$BACKUPLIST is having following 3 file names for example:
...
1,490
Posted By onenessboy
Ok, as of now I figured it out with different...
Ok, as of now I figured it out with different command that is head -n to remove last 3 lines and append new lines with >>


[root@ip-xxxxx source]# head -n -3 reptest > tmp.txt && cp tmp.txt...
1,490
Posted By onenessboy
Hi Ravinder, I tried your solution here is...
Hi Ravinder,

I tried your solution here is what it displays..
stlib='smb_static bsd z resolv rt' this line still shows..

[root@xx-xx--xxx source]# tac reptest | awk 'FNR!=2 && FNR!=3' | tac...
1,490
Posted By onenessboy
Hi Ravinder, Thanks much for help, but is...
Hi Ravinder,

Thanks much for help, but is there any way that we can replace nth line without any conditions to check ? as your solution checking for strings and then replace, but is there any way,...
1,490
Posted By onenessboy
Replace last n lines
Dear Friends,

Using centos 7 version.. I have a file content like this


if bld.env.SAMBA_DIR:
bld.program(target='winexe-static',
source='winexe.c svcinstall.c async.c...
11,081
Posted By onenessboy
How to execute python script on remote with python way..?
Hi all,

I am trying to run below python code for connecting remote windows machine from unix to run an python file exist on that remote windows machine..

Below is the code I am trying:

...
1,446
Posted By onenessboy
How to login and screenshots?
Dear All,

Is that possible to open a url in chrome and then login with credentials and then click on particular link there ,then taking screenshot of that page via shell script ? I need to open...
4,091
Posted By onenessboy
This is resolved now. Omitting loop for text...
This is resolved now. Omitting loop for text variable and updating escapedtext = "$text" does the trick..

Thank you for all help and patience..
4,091
Posted By onenessboy
Thank you very much Its worked like a charm....
Thank you very much

Its worked like a charm. bit modified to display output like below and terminal output is like:


==============================================
Oracle Host:...
4,091
Posted By onenessboy
Hi, I tried to loop in the logic for all...
Hi,

I tried to loop in the logic for all db_sid that are currently running and modified logic as below..but program running but wrong results even though database and listners are up when i...
4,091
Posted By onenessboy
Apologies for delayed reply The below is...
Apologies for delayed reply

The below is smon process shows two db running one is orcl and another one orcltest. So I want program to run for both these and should show its status.

ps -ef |...
4,091
Posted By onenessboy
Thank you all for reply.. My bad, i could...
Thank you all for reply..

My bad, i could have pasted full code.. Yes, I wanted to print those in different lines. However the above solution works Thank you @madeingermany for solution :)...
4,091
Posted By onenessboy
Slack message multi line from UNIX script
Hi

OS: Redhat
Version 7.5 Enterprise

Trying to post message from shell script to Slack channel and trying below code:


text="$msg"
text1="$lmsg"

if [[ $text == "" ]]
then
...
1,552
Posted By onenessboy
Grep date pattern folder and zip -->delete
Hi All,

OS: Redhat Linux 7.5
Shell: Bash

I have some folder like this

2018-09-16
2018-09-17
2018-09-18
2018-09-19 and so on...

Everyday one script create a folder with pattern...
2,393
Posted By onenessboy
Shell output format like table
Hi,

OS: Redhat 7.5
shell: Bash

Wrote below script to login into oracle via shell script and trying to reset locked account..It works as expected. But I need specific output << EOF should go to...
1,985
Posted By onenessboy
Appreciate your help Don 1:b::)
Appreciate your help Don 1:b::)
1,985
Posted By onenessboy
Dear Don Cragun Thanks for detailed...
Dear Don Cragun

Thanks for detailed explanation. Actually what happened was , if you remember your earlier solution on the thread (the code that i was using).. at that time, for testing I have...
1,985
Posted By onenessboy
With Don Cragun suggestion , put Path ,&& before...
With Don Cragun suggestion , put Path ,&& before the braces worked. :)

Thank you Don Cragun for help
1,985
Posted By onenessboy
Conditional delete -- New glitch
Hi
Please dont consider this as duplicated post..

I am using below pattern to find delete files to bringdown disc size.. however how i can make sure ist going to correct folder and searching for...
3,547
Posted By onenessboy
First of all, thanks for your patience in...
First of all, thanks for your patience in answering :)
apologies for delayed reply, i was sleeping :)

Superb !..Thanks for great help, I have tested it from local machine to one of the remote ,it...
3,547
Posted By onenessboy
Hi Robin, Thanks for your kind reply.....
Hi Robin,

Thanks for your kind reply.. apologies for delay.
Yes, below understanding is correct

You are using ssh to connect to the server as yourself
You want to then use sudo to run a...
3,547
Posted By onenessboy
Hi, Hope you are ok ? Yes , after ssh...
Hi,

Hope you are ok ?

Yes , after ssh i will be on another remote box, where i need to switch to oracle user by using su ...

How ever i got some google information and previous reply from...
3,547
Posted By onenessboy
hi robin, sorry for delayed reply......
hi robin,

sorry for delayed reply... specifying oracle username is mandatory, as i cant login to that remote box directly with oracle user(some network restrictions prevent that). Only i can login...
Showing results 1 to 25 of 66

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