Search Results
|
Post |
Author |
Forum |
Replies |
Views |
Posted
[asc]
|
|
|
Thread: comparision of texts in a file
Post: comparision of texts in a file
I Have 2 files. Suppose file1.txt contains
name=ravi rollno=9987
name=sri rollno=9988file2.txt contains
name=ravi rollno=9987 mobileno=9876543212Now i want to compare the above 2 files and generate a ... |
|
saisankalpj |
General Coding Help |
1 |
785 |
Dec-22-2022, 12:22 PM |
|
|
Thread: Automate MML Commands
Post: RE: Automate MML Commands
Hi @wavic
I am facing problem while executing executor.map.
This is my code
ssh = paramiko.SSHClient()
ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())
ssh.connect(HOSTNAME, port=PORT, user... |
|
saisankalpj |
General Coding Help |
10 |
2,132 |
Dec-06-2022, 01:59 PM |
|
|
Thread: reading a table which is of type string
Post: RE: reading a table which is of type string
ssh = paramiko.SSHClient()
ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())
ssh.connect(host, username=username, password=password)
print("Connected")
stdin, stdout, stderr = ssh.exec_command... |
|
saisankalpj |
General Coding Help |
2 |
963 |
Dec-03-2022, 11:19 AM |
|
|
Thread: fetching exit status hangs in paramiko
Post: RE: fetching exit status hangs in paramiko
print(task) returns list of the commands i mentioned,like
Output:['\ncommand1;\ncommand2]
Replacing /n with \n returns
Output:[' ','command1','command2'] |
|
saisankalpj |
General Coding Help |
3 |
1,185 |
Dec-03-2022, 11:02 AM |
|
|
Thread: reading a table which is of type string
Post: reading a table which is of type string
Date Count persons
------------------- ---------- -------
2022/11/01-12:48:06 51 girls
2022/11/01-12:48:11 104 boys
2022/11/01-12:48:12 155 Total
successful
... |
|
saisankalpj |
General Coding Help |
2 |
963 |
Dec-03-2022, 10:55 AM |
|
|
Thread: fetching exit status hangs in paramiko
Post: fetching exit status hangs in paramiko
Hi,
I am using paramiko library to run interactive shell.
As per my requirement ,I needed to execute a command (say command3) only after executing command1 and command2 parallely.So below is my code... |
|
saisankalpj |
General Coding Help |
3 |
1,185 |
Nov-29-2022, 02:26 PM |
|
|
Thread: no such file or directory in SFTP
Post: no such file or directory in SFTP
I am using sftp.put() to upload files into SFTP server.But i am following errorError:No such file or directoryThis is my present folder structure:
- Django_Project
-djangoapp
... |
|
saisankalpj |
General Coding Help |
2 |
1,558 |
Nov-25-2022, 06:59 AM |
|
|
Thread: Automate MML Commands
Post: RE: Automate MML Commands
Hi @wavic
output=subprocess.run(['ssh', '[email protected]'])
print(output.returncode)While i used the above code to login to server The return code i got is 255.
any reason why this occurs?
I per... |
|
saisankalpj |
General Coding Help |
10 |
2,132 |
Nov-09-2022, 12:46 PM |
|
|
Thread: reading content between a specific xml tag
Post: reading content between a specific xml tag
I have a spml file as below:
<?xml version="1.0" encoding="UTF-8"?>
<spml:batchresponse designation="software developers">
<response>
<position alias="role">Python develop... |
|
saisankalpj |
General Coding Help |
1 |
844 |
Oct-31-2022, 12:40 PM |
|
|
Thread: Automate MML Commands
Post: RE: Automate MML Commands
Hi @wavic,
There was initial plan to login using telnet.The plan is now changed and i am supposed to login using ssh(That was your first question).
Now will the code you suggested change when loggin... |
|
saisankalpj |
General Coding Help |
10 |
2,132 |
Oct-31-2022, 06:31 AM |
|
|
Thread: Automate MML Commands
Post: RE: Automate MML Commands
|
saisankalpj |
General Coding Help |
10 |
2,132 |
Oct-27-2022, 02:30 PM |
|
|
Thread: Automate MML Commands
Post: RE: Automate MML Commands
Thanks for the quick solution
'floating IP address of the U2020 server' is like 192.168.1.100 and not web address.
What change should i make in the above code if commands needs to be executed sequ... |
|
saisankalpj |
General Coding Help |
10 |
2,132 |
Oct-27-2022, 01:42 PM |
|
|
Thread: Automate MML Commands
Post: RE: Automate MML Commands
I am not logging in using ssh command.I am rather using :
telnet floating IP address of the U2020 server portnumberMML commands need not be sequential
After running the MML commands,i will be able t... |
|
saisankalpj |
General Coding Help |
10 |
2,132 |
Oct-27-2022, 09:48 AM |
|
|
Thread: Automate MML Commands
Post: Automate MML Commands
I need to extract files from U2020 server. For this purpose i need to run MML Commands.I have the commands with me.But each time instead of manually entering the MML commands from the CLI ,i want to a... |
|
saisankalpj |
General Coding Help |
10 |
2,132 |
Oct-27-2022, 07:46 AM |
|
|
Thread: swapping data in mongodb
Post: swapping data in mongodb
I have created a mongodb collection in python django.The collection name is audit_details and it consists of following data
Output:_id:630e026211cb34947c85a7a5
user:"akhil"
status:null
old_data:null
n... |
|
saisankalpj |
General Coding Help |
0 |
733 |
Aug-30-2022, 12:42 PM |
|
|
Thread: Configuration file through helm charts
Post: Configuration file through helm charts
Hi,
Right now My django project is up and running in kubernetes cluster.I have achieved this through helm charts by specifying the docker images path in values.yaml file.
So the requirement is now tha... |
|
saisankalpj |
Web Scraping & Web Development |
0 |
1,732 |
Aug-23-2022, 01:32 PM |
|
|
Thread: exception handling
Post: exception handling
I want to handle exceptions in django.When the debug=True in django,we get a standard error page in html.But my requirement is that the error response should be in application/json.How do i do this.
... |
|
saisankalpj |
Web Scraping & Web Development |
1 |
1,146 |
Aug-05-2022, 07:54 PM |
|
|
Thread: Docker -building a python image
Post: RE: Docker -building a python image
(Jul-13-2022, 12:10 PM)ndc85430 Wrote: It doesn't look like a problem with setuptools itself - the connection is timing out. Do you have more network issues? Is there a firewall or something that is... |
|
saisankalpj |
General Coding Help |
5 |
3,954 |
Jul-13-2022, 12:53 PM |
|
|
Thread: Docker -building a python image
Post: RE: Docker -building a python image
Right now i am able to run the docker build command and install all libraries.But the image is not created successfully and i got following error
#10 6.617 Downloading pysftp-0.2.9.tar.gz (25 kB)
... |
|
saisankalpj |
General Coding Help |
5 |
3,954 |
Jul-13-2022, 09:49 AM |
|
|
Thread: Docker -building a python image
Post: RE: Docker -building a python image
(Jul-13-2022, 06:19 AM)ndc85430 Wrote: Looks like a network problem. Are you able to run pip successfully on the host?
yes,i was network problem.Could fix it with help of proxy. |
|
saisankalpj |
General Coding Help |
5 |
3,954 |
Jul-13-2022, 09:41 AM |