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 TouchToneTommy 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: *

  • Users: pankajpanjwani
  • Order by date
  1. pankajpanjwani

    suspend job of other terminal

    just to calrify my point. I donot want to KILL that job, I want to immitate Ctrl-Z and "fg"/"bg" behavior with "kill" command. I hope this calrifies that it needs to be suspended (and not killed) so that i can again run it. Pankaj
  2. pankajpanjwani

    suspend job of other terminal

    Hi experts, Is it possible to suspend a job which was run in past through a terminal which do not exist now. The job may be running in background but the terminal was closed down for some reason. I tried kill -STOP pid and kill -CONT pid. Did not work as expected. Pankaj
  3. pankajpanjwani

    Radiobuttion value assign

    Hi mistkhan, try this, Instead of setting g_dev_id after the radiobutton description, add -command option to radiobutton. your code should read like this. ################ radiobutton $tit_dev.rad_bid01 -disabledforeground #a3a3a3 -selectcolor #b03060 -text {Board ID 1}...
  4. pankajpanjwani

    Invoking script and would like to have interative shell too

    I am trying to invoke a script e.g. #!/usr/local/bin/wish .... .... ... with that I would like to have the wish shell on the terminal from which this script has been invoked. So that I can run my tcl commands from that shell. Is it possible somehow to do it. Thanks Pankaj
  5. pankajpanjwani

    open toplevel window on other DISPLAY

    Hi, I am trying to open a toplevel window on a Display other than parent window's display. I have tried setting env(DISPLAY) before giving toplevel command. But the toplevel still opens in parent window's display. Any solutions??? Pankaj
  6. pankajpanjwani

    stariting wish from tcl script

    Hi experts, I am struck again with this issue If anybody has any suggestions on this, then please help me out. thanks in anticipation Pankaj
  7. pankajpanjwani

    working with variables

    thanks ulis, This worked, I tried almost evrything except this Anyways, thanks and your right eval looks to be simple but it's more complex to master. Pankaj
  8. pankajpanjwani

    working with variables

    Hi Experts, I have a code like set abc 1 set def 1 set xyz 0 ... ... foreach x { abc def xyz } { if { <value of variable $x> != 0} { perform this } else { perform this } } In this by <value of variable $x> I mean that I would like to have value 0 or 1, depending upon variable...
  9. pankajpanjwani

    sh being executed instead of csh

    tdat, thanks for all those information, i used to think that there is something related between the default shell and the shell invoked by perl or cron. Probably, I need to modify these scripts accordingly. thanks for responding Pankaj
  10. pankajpanjwani

    wish restarting

    Avia, thanks for response. I am now more clear about the magic variables. I could also find a solution to other problem of detecting the file type and invoking wish or tcsh accordingly. thanks again Pankaj
  11. pankajpanjwani

    sh being executed instead of csh

    Robert, I did not get this, do you mean that i should start test.csh as ./test.csh In that case, I am doing so. if you have any suggestion for setting environment variable in parent shell through a script(which is sourcing an environment setup file), please let me know thanks
  12. pankajpanjwani

    sh being executed instead of csh

    tdatgod, I understand in that case it'll work, but with that it'll start a new child process, and changes to parent shell wont occur. I have stated in my problem that &quot;.....What I want is that to simply execute the commands and set these variables in parent shell without invoking a new...
  13. pankajpanjwani

    wish restarting

    #!/bin/sh # this will restart wishexec wish &quot;$0&quot; &quot;$@&quot; the above works, but the with csh... . #!/bin/csh # this will restart wishexec wish &quot;$0&quot; &quot;$@&quot; doesn't work. Expecting experts here to come with some strong reason -Pankaj
  14. pankajpanjwani

    sh being executed instead of csh

    Hi, I am trying to set some environment variable in my paren shell which are available in a file. file : test.csh ..................... source someFilePath/someFile setenv NEW2 NEW2 ................... test.csh has executable permission, and I am running it on csh. When I try to execute...
  15. pankajpanjwani

    How do I switch user within a CSH script?

    what type of information do you want user to update. Some of the information can be updated through commands like passwd -r nis -e <user> for changing default shell passed -r nis -h <user> for changing home for <user>
  16. pankajpanjwani

    sh being executed instead of csh

    Hi, I am trying to set some environment variable in my paren shell which are available in a file. file : test.csh ..................... source someFilePath/someFile setenv NEW2 NEW2 ................... test.csh has executable permission, and I am running it on csh. When I try to execute...
  17. pankajpanjwani

    sh being executed instead of csh

    Hi, I am trying to set some environment variable in my paren shell which are available in a file. file : test.csh ..................... source someFilePath/someFile setenv NEW2 NEW2 ................... test.csh has executable permission, and I am running it on csh. When I try to execute...
  18. pankajpanjwani

    running two commands in a single child process through system()

    My resource compiler file is not that simple, it also contains some constructs which cannot be set like this, you know how these cshrc's look like. e.g. -----**------------**------------ if ( $?OPENWINHOME ) then if ( $?LD_LIBRARY_PATH ) then setenv LD_LIBRARY_PATH...
  19. pankajpanjwani

    running two commands in a single child process through system()

    Hi Experts, I am trying to, 1. source a resource compiler file. (which sets some environment variable and appends the path) 2. Fire a job, for which uses the environment set in first step. e.g for testing, it can be step 1 : setenv TEST test step 2 : echo $TEST For, this I cannot use two...
  20. pankajpanjwani

    invoking c-shell instead of normal shell with system()

    Hi Mike, your suggestion $shell = '/bin/csh'; system(&quot;$shell cmd_to_run&quot;); is running fine when the cmd)to)run is a file, but when it is a shell command, it doesnot work, I feel it is expecting a file at &quot;cmd_to_run&quot; position. Anyways, I am still not having the solution...

Part and Inventory Search

Back
Top