Hi, I am trying to execute some existing ksh scripts in an environment where I have pdksh instead. Since the first line of each script is either /bin/ksh or /usr/bin/ksh instead of /bin/pdksh they all fail. Is there a way to set a link or substitution in the environment to allow these to run...
Hello
I have one program that calls another via os.system(2nsprogram). Problem is that the 2nd program on error executes os.exit(1). The calling program stops running also. How can I get the exit code back to the calling program. Thanks
Hello,
In windows 2000
I've created a script that runs fine when I open it from explorer or from an open command window. When I put it on my desktop however it fails when I double click it. I put a statement in it to execute it from the directory where it usually runs from. I know it goes to...
Hello, I've loaded all tools to allow rlogin and rsh and am able to rlogin from other machines but not from the local machine. Doesn't seem to make sense. I tried to rlogin to 127.0.0.1 loopback and to one of the enet ports on the machine but without success either way. Thanks for any help.
Thanks for the help. I have rsh and xinetd running now. Now I'm trying to set up rlogin and rsh to allow login without having to enter password each time. Don't worry, the system is on a private network. When I rlogin or rsh without a userid it assumes "root" and always prompts for a password...
Hello, I've just downloaded and installed Fedora distribution and tried to install all of the network server options. I still cannot seem to start "rshd" which I need for my application. I don't even have a /etc/inetd.conf file to modify. Please help. What do I need to install to make this work?
Thanks theDaver but it is not write protected. I will try RhythmAce's recommendation Monday. Perhaps another diskette will do it. I didn't know diskettes when reformatted would have any data to identify them on it. I will try anyway.
Hi , Basic question.
Created mount point /mnt/floppy
Mounted floppy
Copied files to another directory.
Unmounted floppy
Formatted floppy on another machine.
Mounted floppy again.
Same files still on floppy according to Linux. Cannot erase due to "read only". Cannot change permissions to...
I tried the passwd binary but it did not seem to work. Maybe I ran it incorrectly. I did get the expect script to work by adding some delay.
#!/bin/sh
# \
exec expect -f "$0" ${1+"$@"}
set password [lindex $argv 1]
spawn passwd [lindex $argv 0]
expect "assword:"
time {sleep 5}
send...
Hi, It is deliberate. Actually i copied this script exactly a shown from another website. I have not written any of my expect scripts before but I heard it was created just for this purpose i.e. to respond to operator prompts.
Hello,
I'm running this script on my linux machine.
#!/bin/bash
# \
exec expect -f "$0" ${1+"$@"}
set password [lindex $argv 1]
spawn passwd [lindex $argv 0]
expect "assword:"
send "$password\r"
expect "assword:"
send "$password\r"
expect eof
When I execute it on my linux machine...
Hello, I'm running a python program Python 2.3.5 on the 9-25-05 knoppix CD . The machine boots up fine and runs find for a time but I've notice that the programs freeze up after a while. I've noticed that when I break out of the programs often the erring command was 'time.sleep(3.00)' or some...
Thanks Feherke for the reply however I don't know exactly how to change my PATH using the source command. Sorry, I'm a novice. For now I am appending my PATH=xxxx to /etc/profile and executing 'su root'in my script which makes the changed profile active. Can you explain a bit how the source...
Hello
I'm running as root on KNOPPIX cd. I want to run a shell script to append to the PATH. If I enter "export PATH=$PATH:/newdir" at the command line it works. If I try to execute in my script it fails. Is there a simple way to do this in my script?
If I append to /etc/profile I have to...
Hello, I'm trying to spawn another python program and have to pass it a few arguments...
var1="12"
var2="1"
print "spawn prog"
pid=os.spawnv(os.P_NOWAIT, '/user/bin/python', ('python, 'myprog.py', var1, var2))
print "prog spawned"
When I execute this program all I see is:
spawn prog
prog...
Hello, I'm trying to remaster the KNOPPIX CD and am having some newbie problems, even following the posted instructions. The last statement in the instructions is :
mkisofs -r -J -b KNOPPIX/boot.img -c KNOPPIX/boot.cd -o myimage.iso NewCD
The problem I have is that there is no boot.img file on...
Thanks cpjust for the info. I submitted here because the progam is c although I used a c++ compiler. I agree with your comment. In some cases all instances post all results and in others they don't.
Hello, I've got a file that I start with a batch file in several W2K widows using the line:
start cmd /c "c:\myfile.exe" 0
start cmd /c "c:\myfile.exe" 1
...
I'm opening up five instances currently. Each instance shares the same log file. The exec file has the shared log file open from start...
Thanks Eric, that solved the problem. I installed with --nodeps. I installed the TK, TCL, and TIX from source files so they are not in the RPM database. I'm a linux novice so this was unknown to me. Thanks again.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.