Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. dans45

    need to redirect to different interpreter

    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...
  2. dans45

    get return code when called program exits

    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
  3. dans45

    executing script from desktop

    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...
  4. dans45

    FC 6 cannot rlogin to local host

    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.
  5. dans45

    How to start rshd on fedora

    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...
  6. dans45

    How to start rshd on fedora

    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?
  7. dans45

    how to erase files on floppy?

    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.
  8. dans45

    how to erase files on floppy?

    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...
  9. dans45

    expect script failing ...almost works

    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...
  10. dans45

    expect script failing ...almost works

    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.
  11. dans45

    expect script failing ...almost works

    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...
  12. dans45

    how do I export PATH=$PATH:/newdir using script

    Thanks, I did not know that it would only last the duration of my script. I'm just learning. Dan
  13. dans45

    possible time.sleep() problem...is there an alternative

    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...
  14. dans45

    how do I export PATH=$PATH:/newdir using script

    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...
  15. dans45

    how do I export PATH=$PATH:/newdir using script

    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...
  16. dans45

    problem with os.spawnv

    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...
  17. dans45

    what is mkdir $ROOTFS/isolinux doing?

    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...
  18. dans45

    can several instances of exec share same log file ?

    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.
  19. dans45

    can several instances of exec share same log file ?

    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...
  20. dans45

    tkinter rpm will not install

    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.

Part and Inventory Search

Back
Top