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
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
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}...
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
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
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
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...
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
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
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
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
".....What I want is that to simply execute the commands and set these variables in parent shell without invoking a new...
#!/bin/sh
# this will restart wishexec wish "$0" "$@"
the above works, but
the with csh... .
#!/bin/csh
# this will restart wishexec wish "$0" "$@"
doesn't work.
Expecting experts here to come with some strong reason
-Pankaj
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...
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>
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...
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...
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...
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...
Hi Mike,
your suggestion
$shell = '/bin/csh';
system("$shell cmd_to_run");
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 "cmd_to_run" position.
Anyways, I am still not having the solution...
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.