-1
votes
1answer
63 views

Find and Replace not working [closed]

I am facing problem in finding and replacing the content of file1(search.sh) with the file2(replace.sh) in all xml files. i have written the below script to search each string of file1 and replace ...
0
votes
2answers
42 views

Popen not taking the arguments

Hi all I am learning python and shell script and for GUI i am using wxpython. I have said to make a automated tool which does some operation , deb creation is also one of that. for deb creation , ...
0
votes
1answer
26 views

how to avoid to get stuck while opening a process that wait

I am having a little problem: I am basically trying to open a connection via tcprelay, but when I run it in a shell script; the window show that the process starts forwarding, but the cursor stay ...
0
votes
0answers
24 views

Popen call not outputting to a file or determining the parameter string correctly in python

The two Popen commands run below the strings are identical yet only the second one works when I input the whole command that I run in terminal. The first one I can see the ghostscript command run as ...
1
vote
3answers
45 views

How to execute Python inline from a bash shell

Is there a python argument to execute code from the shell without starting up an interactive interpreter or reading from a file? Something similar to: perl -e 'print "Hi"'
-2
votes
0answers
28 views

Result (output) when using python to Popen a process and exe a crond command

Question 1: When ftpd is running (only one process) and linux system execute the crontab list commands, what's the result of the variable output at line 15 of file1.py. In my test: I found output = 4 ...
1
vote
4answers
72 views

Script to ssh into server automatically

I'm trying to create a script to automatically log me in to a password protected server to upload a file from an ubuntu directory automatically. I am doing this for the purposes of automatically ...
0
votes
0answers
67 views

Set system proxy settings from a python script on Ubuntu 13.04 (raring)

I am writing a python script to change the system-wide proxy settings for various tasks depending on user settings. Various (shell) solutions posted on the internet use gsettings or gconftool-2, so I ...
0
votes
3answers
92 views

How to kill a terminal after completion of process

I am learning bash script and python for my project, I wants to Kill the terminal after completion of its execution. I run my process on one terminal and when I execute it it open a new terminal and ...
0
votes
1answer
39 views

can't input '<' in ipython/python shell [duplicate]

I installed IPython and readline through pip like this: sudo pip install ipython sudo pip install readline but I find that I can't input '<' in either Python shell or IPython shell. When I type ...
0
votes
1answer
32 views

Not able to fetch log files from shell using python

I am trying to use subprocess module with Popen to fetch log from a specified URL, However, I am not able to fetch the log and the program returns me a blank. I have been using the below mentioned ...
0
votes
2answers
76 views

Python String Split ^\ is not working

Opening my input file in vi editor is like ACT211111011100000000000000000000000606018^\10421040036991^\M/S DOHAR TRADERS^\BD^\167^\050^\000000579300^\000000579300^\ ...
1
vote
2answers
74 views

Python command line args format issue

I am a beginner at Python. Below is the testing code for Python's command line args. If executing from command line with different parameter formats, I get different results, but it feels strange, can ...
0
votes
1answer
74 views

how to make new session in after editing .bashrc file

Hi all I am learning python script and trying to write some code. I have found issue while when i edit ".bashrc" file. After editing .bashrc I need to either type bash or source .bashrc or source ...
0
votes
1answer
45 views

Running a Python Script Like a Built-in Shell Command

I have gone through the following steps. Made the file executable, Tested that the file could be run with ./script1.py, Added the file's directory to the system $PATH. However, at this point, am I ...

1 2 3 4 5 52
15 30 50 per page