Search Results

Search: Posts Made By: pratapsingh
1,728
Posted By pratapsingh
Match and insert in a sorted list
I have a sorted list (python) and I want to insert a string if it matches the pattern in list.

Example :

Sorted List
['Amy Dave', 'Dee Waugh', 'Eva A', 'Gin', 'Joy Kola', 'Kay...
1,627
Posted By pratapsingh
Sort names in a list by order of importance
Hi,

I have multiple list which is arranged by order of importance. I need to do sorting on these lists based on the last name of the user(initial), if user name does not have initial then first...
2,129
Posted By pratapsingh
"Not available" It was typo error .. I corrected...
"Not available" It was typo error .. I corrected the typo error in the post now .. I did not copy paste the file and selected few lines from the files and edited the post ..

Thanks Agama .. I will...
2,129
Posted By pratapsingh
Sorry forgot to mention that .. all the fields...
Sorry forgot to mention that .. all the fields are separated by \t TAB .
2,129
Posted By pratapsingh
Merge two files with similar column entries
Hi ,

I have few files which contains user name and data transfer rate in MBs and this data is collected for year and for each month report is saved in 12 different files I have to merge all the...
Forum: Red Hat 03-28-2012
3,672
Posted By pratapsingh
@Mark : Yes that is what i know. Why pstree...
@Mark : Yes that is what i know.

Why pstree and ps command output is different?
Forum: Red Hat 03-27-2012
3,672
Posted By pratapsingh
Listing all child pid and deleting it in reverse order
Hi ,

My problem is that I am not able to list all process id of any process.



If you see pstree command it shows many process id under https. But if I run ps command its not listing all the...
Forum: Red Hat 02-27-2012
8,972
Posted By pratapsingh
Thanks for your reply I found the solution and it...
Thanks for your reply I found the solution and it was nothing with my setting it was due to the rpm package "net-tool". I just upgraded it using yum and it got fixed .

Also I found that file...
Forum: Red Hat 02-26-2012
8,972
Posted By pratapsingh
hostname command prints nothing a null value
Hi ,

On my box everything works fine. But whenever I run command



It returns nothing as you see @(none) too.



Its very strange issue I have never noticed on any other system yet.
...
3,275
Posted By pratapsingh
No , I can't use Expect. @Ahmed, But...
No , I can't use Expect.

@Ahmed,

But is there a way that I can get source of Expect .. or Can I write expect function itself cause in my environment I am not suppose to install any module or...
3,275
Posted By pratapsingh
@ahamed101...
@ahamed101 (https://www.unix.com/members/302048505.html) I mean "act" as "work like" .


@Shiri Thanks for the clue but my bad is I am using RHEL box .
3,275
Posted By pratapsingh
Thanks but , is there a way to write a function...
Thanks but , is there a way to write a function which should act like expect or Net::SSH.

:wall:
3,275
Posted By pratapsingh
Yeah as of now it seems to be that only. But is...
Yeah as of now it seems to be that only. But is there any way that can be achieved? Is there any way to write my own expect function?

If that is possible I can do it . But I am not that smart in...
3,275
Posted By pratapsingh
Login to multiple host without using Expect
Hello ,

I have a problem which involves a set of command should be executed on remote host and output should be stored in a file. But due to security reason I can not use expect to enter the...
8,456
Posted By pratapsingh
Thanks for your reply .. I am now able to...
Thanks for your reply ..

I am now able to login to server and execute as many command as I want . I am now able to open an interactive session with my script. Still facing some issue but I will...
8,456
Posted By pratapsingh
Hello Corona, Thanks for your reply but I...
Hello Corona,

Thanks for your reply but I think you did'nt check the first post of this thread where I had already mentioned it, I am storing all the password and details in a database and...
8,456
Posted By pratapsingh
Hello yes I can do ("ssh user@hostname");...
Hello

yes I can do ("ssh user@hostname"); but I do not want to share my password with other user hence I need to make it common for every one.

Here is my code which logs in and performs some...
8,456
Posted By pratapsingh
Thanks Yogesh, But I may need to enter...
Thanks Yogesh,

But I may need to enter multiple commands and it may also depend on the situation of my requirement hence every time loging into the server and logging out is a problem , is there...
8,456
Posted By pratapsingh
yes I have net::ssh::perl and expect too This...
yes I have net::ssh::perl and expect too
This script can execute can execute the command which is given in the script only but I want to enter the command manually and I should be able to terminate...
8,456
Posted By pratapsingh
Perl open a remote shell
Hello ,

I am writing a script which takes the user name , password and hostname from the database and login to the server .

I am only able to login to the server and my script logs out and only...
Showing results 1 to 20 of 20

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