06-29-2009
Regarding about the printing script/python
Hello,
I am not sure whether this is the right forum or not, if not sorry for that.
I am trying to print text at desire column with python script.
eg. in this sentence
print >>AA_sql, "Hello"+ "World"
I want to print "Hello" at column10 and "World" at column30, simple idea is to make space , but i got many mess up lines to print.
That will be great if anyone can advice.
Many thanks,
DAVID
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi
I have a python script,i need to run this script from a tcl script.Can anyone let me know how to do this (1 Reply)
Discussion started by: nathgopi214
1 Replies
2. Shell Programming and Scripting
Hi
I need to run a shell script from a TCL script,the shell script in trun will run a python script
1.Tcl script
set filename "./GopiRun.sh"
2.GopiRun.sh
python ./psi.py $MYSB/test_scripts/delivery/gpy1.py
3.I have my gpy1.py script.
Here the problem i am facing is on running... (0 Replies)
Discussion started by: nathgopi214
0 Replies
3. Programming
Hi
i work under CentOS 5.5, Qt 4.7, Python 2.4.
i need to send data from C++ to Python.
i write a code but it's not work, i have an Inferior System error on it.
PyObject* objArg = Py_BuildValue("(z)", cKeyNum);
PyObject* objFunc = (PyObject*)Init;
pValue = PyEval_CallObject(objFunc, objArg);... (12 Replies)
Discussion started by: HanyM.Magdy
12 Replies
4. Shell Programming and Scripting
I have a shell script main.sh which inturn call the python script ofdm.py, I want to pass two variables from shell script to python script for its execution. How do i achieve this ?????
Eg:
main.sh
a=3 b=3;
c= a+b
exec python ofdm.py
ofdm.py
d=c+a
Thanks in Anticipation (4 Replies)
Discussion started by: shashi792
4 Replies
5. Shell Programming and Scripting
experts, i wrote a python script to do a certain job, i tried it and it is working fine, i want this script to be executed automatically after a ksh script, the problem is when i execute the ksh script my python script runes perfectly after the ksh script as I have include it at the end of the ksh... (1 Reply)
Discussion started by: q8devilish
1 Replies
6. Shell Programming and Scripting
I have bash shell script which is internally calling python script.I would like to know how long python is taking to execute.I am not allowed to do changes in python script.Please note i need to know execution time of python script which is getting executed inside shell .I need to store execution... (2 Replies)
Discussion started by: Adfire
2 Replies
7. Windows & DOS: Issues & Discussions
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:
#!/usr/bin/env python
import wmi
c = wmi.WMI("xxxxx", user="xxxx", password="xxxxxxx")... (1 Reply)
Discussion started by: onenessboy
1 Replies
8. Programming
Hi all...
As you know I like making code backwards compatible for as many platforms as possible.
This Python script was in fact dedicated for the AMIGA A1200 using Pythons 1.4.0, 1.5.2, 1.6.0, 2.0.1, and 2.4.6 as that is all we have for varying levels of upgrades from a HDD and 4MB FastRam... (1 Reply)
Discussion started by: wisecracker
1 Replies
9. UNIX for Beginners Questions & Answers
In a python script I have 2 files printing side by side on the same line. I want to have 1 of the files to be already displayed at once while the other file print down the list in the file and it still will produce new lines. I want to do it like that to reduce printing a lot of lines and... (0 Replies)
Discussion started by: bigvito19
0 Replies
LEARN ABOUT DEBIAN
ipcheck
IPCHECK(8) System Administration Utilities IPCHECK(8)
NAME
ipcheck - dyndns.org client
DESCRIPTION
Usage : ipcheck.py [options] Username Password Hostnames or ipcheck.py [options] --acctfile acct_info_file
Options: -a address manually specify the address
-r URL NAT router, use web IP detection
-A text
scan syslog for an IP after text (Unix only)
-F filename
guess the WAN IP from a firewall log
-b backup mx option ON (default OFF)
-c custom dns option (default dynamic)
-d dir directory for data files (default current)
-e script
execute script after a successful update
-f force update regardless of current state
-g NAT router, let dyndns guess your IP (do not use this in a cronjob, try -r)
-h print this help text
--help print all available help text
-i interface
interface for local address (default ppp0)
-j disable https
-l log debugging text to ipcheck.log file
--syslog
log debugging text to syslog (Unix only)
-m mxhost
mx host (default NOCHG)
-o set dyndns offline mode
-p proxy bypass on port 8245
-q quiet mode (unless there is an error)
-s static dns option (default dynamic)
-t test run, do not send the update
-v verbose mode
-w wildcard mode ON (default OFF)
--makedat
create the ipcheck.dat file by dns lookup
--devices
print router options (Linksys, Netgear, etc)
-n ip the router IP address on the internal lan
For help with different options: python ipcheck.py -h For supported devices listing : python ipcheck.py --devices For long detailed help
text : python ipcheck.py --help
Make sure you can write to the current directory for data files and that you always run from the same directory. The first time you run
the script, you will be asked to run with the --makedat option in addition to any other options. This will create the data files for the
hostnames and options your specify on the command line. You should only do this once. Subsequent runs should be made without the --make-
dat option.
For help with different options: python ipcheck.py -h For supported devices listing : python ipcheck.py --devices For long detailed help
text : python ipcheck.py --help
Example 1: the external IP is on eth0 of the current machine python ipcheck.py -l -i eth0 username password hostnames
Example 2: you are using the Linksys routing device python ipcheck.py -l -L linksyspassword username password hostnames
Example 3: you want to use web based ip detection python ipcheck.py -l -r checkip.dyndns.org:8245 ...
where ... is your dyndns username password and hostnames. Hostnames should be comma delimited if there are more than one.
Debian GNU/Linux January 2012 IPCHECK(8)