Tcl/tk:  #!/usr/bin/wish in a script file does not start wish

When executing a tcl/tk script file, 'wish' does not execute the tcl/tk commands in the file.
Instead I get error messages: "command not found" from tcsh for every tcl/tk command in the file. I use tcsh as login shell.
The first line in the script file is: #!/usr/bin/wish. The program is at this place.
Starting 'wish' with my tcl/tk file as argument works fine.
Starting the wish.app and "sourcing" the script file works fine.
jo

Thanks for the help so far.
Using
/usr/bin/wish led.tk
works.
using
./led.tk
does not even start wish. I checked with Activity Monitor.
Below are my "wishes", the first one is actually a link to wish4.8.
ls /usr/bin/wi*
wish
wish8.4
wish8.4-X11
wish8.4.7
wish8.5
But I am one step closer.
Starting X11.app and starting my script in an xterm and using
'#!/usr/bin/wish8.4-X11'
in the script works.
Using
#!/usr/bin/wish8.4
has still the same symptoms. For me it looks like a bug. I wonder if anybody can verify on MacOS 10.4.3

Similar Messages

  • /usr/bin/ld: CANNOT EXECUTE binary file!

    So whenever I try to compile something, I get to the step
    checking for gcc... gcc
    checking for C compiler default output file name...
    configure: error: C compiler cannot create executables
    See `config.log' for more details.
    And looking at the log, my problem is...
    /usr/bin/ld: /usr/bin/ld: cannot execute binary file
    Which... Is bad. Yes, I've tried chmodding it +x. I've also tried logging in as root and trying to run it, no luck.
    What's wrong? =/
    Would asking someone else with an iMac G5 to send me theirs, fix it?

    Running configure on all open source packages brings me to the ld cannot execute error in configure.log. In this case I was attempting to build libssh2 (SSH functions for PHP).
    Thanks for the link Nils, I'll try that.

  • Error in script task "The name 'file' does not exist in the current context"

    I am new to the c# scripting and SSIS come from PHP and Foxpro.
    I am using SSIS with a script task and I am getting am errror "The name 'file' does not exist in the current context" in the following code in the picture below: (See
    Why does the object named "file" go away after the first refrence to it?? How do I make it avaliable for the whole script??
         public void Main()
            String cFileInfo = null;
            DateTime dFTPFileDateTime;
       bool fireAgain = true;
                List<IRemoteFileInfo> fileList = (List<IRemoteFileInfo>)Dts.Variables["SFTPResult"].Value;
                foreach (IRemoteFileInfo file in fileList)
                    cFileInfo = file.Name + "|" +file.ModifiedTime +"|"+ file.Size;
                Dts.Events.FireInformation(1, "Name ", cFileInfo, "", 0, ref fireAgain);
                dFTPFileDateTime =
    file.ModifiedTime;
    << This is where the error is occuring. 
                Dts.TaskResult = (int)ScriptResults.Success;

    I think you forgot { and } after the loop... Or is that deliberately?
    Please mark the post as answered if it answers your question | My SSIS Blog:
    http://microsoft-ssis.blogspot.com |
    Twitter

  • "File does not exist: /etc/apache2/htdocs/ABC/script" why?

    Hey all,
    on Linux error.log I go:
    "File does not exist: /etc/apache2/htdocs/ABC/script" when I try to use the browser connecting to system. Why?
    Any help is fine.
    Thanks a lot in advance and best regards
    Michael

    get it myself
    ip adress in wgate config has to be changed to default

  • Workflow does not start when PowerShell Script is run from Task Scheduler

    I have a PS script that updates an item in a SP2010 list so that a workflow will be started.  When I run the PS script manually from the PS window on the server it resides, the script runs flawlessly.  If I set a scheduled task on the same server
    to run the script with the same credentials as are being used in the PS window, the script runs, updated the info on the list, but DOES NOT start the workflow.  As we know, SPD workflows cannot be started by anonymous or system accounts.  It is as
    if the task scheduler adds a bit of information that makes the SP2010 list think the information was updated by one of these accounts even though the field in the list for the item being updated shows the correct account.
    HELP!!!
    D

    Hi,
    The issue might be related to the script or schedule task settings your configured. You’d better check the settings.
    For example, which option do you set to run the scheduled task? You may select “Run whether user is logged on or not” instead of “run only when user is logged on” as shown in this article:
    http://blog.pointbeyond.com/2010/04/23/run-powershell-script-using-windows-server-2008-task-scheduler/
    Hope it helps.
    Best Regards,
    Sally Tang

  • Form Button running Script that does not complete Progress Bar

    Hello,
    Currently I have created a form using the System.Reflection.Assembly which includes a textbox and button.   The button calls a script with a progress bar using the write-progress method, but when the progress bar completes it does not go away.
    Any assistance is appreciated.   As the code is quite long and in several files I have posted some of the code below.
    [void] [System.Reflection.Assembly]::LoadWithPartialName("System.Drawing")
    [void] [System.Reflection.Assembly]::LoadWithPartialName("System.Windows.Forms")
    $getVMware = Join-Path -path $ScriptPath -ChildPath "bin\get-vmhosts.ps1"
    Add-PSSnapin VMware.VIMAutomation.Core -ErrorAction SilentlyContinue
    $objForm = New-Object System.Windows.Forms.Form
    $objForm.Text = "VMware Script - Created by Walter Beach"
    $objForm.Size = New-Object System.Drawing.Size(650,390)
    $objForm.StartPosition = "CenterScreen"
    $AuditButton = New-Object System.Windows.Forms.Button
    $AuditButton.Location = New-Object System.Drawing.Size(310,80)
    $AuditButton.Size = New-Object System.Drawing.Size(75,23)
    $AuditButton.Text = "Audit"
    $AuditButton.Add_Click({ get-vmhosts | set-vmdnsservers -DNS $DNS })
    $objForm.Controls.Add($AuditButton)
    Function set-vmdnsservers
    param
    [Parameter(ValueFromPipelineByPropertyName=$true)]$Name,
    [Parameter(Mandatory=$true,HelpMessage="Example: 192.168.1.1")]$DNS
    $i = 0
    $itemCount=$input.Count
    write-host ""
    Write-Host "Configuring DNS Server " -NoNewline
    $Input | ForEach {
    IF ($PSVersionTable.PSVersion.Major -ge 3) { Write-Progress -activity "Configuring DNS Servers" -status $_ -PercentComplete (($i++ / $itemCount) * 100) } Else { ticker }
    $_ | Get-VMHostNetwork | Set-VMHostNetwork -DnsAddress $DNS | Out-Null
    } # End For Each Loop
    } # End of set-vmdnsservers
    Walter

    You need to put a final call to Write-Progress with the -Completed switch, probably right after your ForEach loop, in this case:
    $Input | ForEach {
    IF ($PSVersionTable.PSVersion.Major -ge 3) { Write-Progress -activity "Configuring DNS Servers" -status $_ -PercentComplete (($i++ / $itemCount) * 100) } Else { ticker }
    $_ | Get-VMHostNetwork | Set-VMHostNetwork -DnsAddress $DNS | Out-Null
    } # End For Each Loop
    Write-Progress -Activity "Configuring DNS Servers" -Completed

  • [SOLVED] /usr/lib/aspell-0.60/xray.cset does not exist...

    Update:
    I'd still like to understand what this /usr/lib/aspell-0.60/xray.cset file is all about. But apearantly I don't really need it. I fired up my xubuntu installation to spellcheck the LyX document. And because the  ~/.aspell.en.pws on Arch had more added words in it I was about to copy it over the Xubuntu copy... Fortunately I compared them first and noticed that the working Xubuntu  ~/.aspell.en.pws  was a 212 line file beginning with "personal_ws-1.1 en 211" (evidently reflecting the number of words @ 1 per line) while the broken ~/.aspell.en.pws on Arch was a 299 line file beginning with "personal_ws-1.1 en 299 xray" Considering I had recently deleted one word/line from it the only part that didn't make sense was the word xray... changed that line to "personal_ws-1.1 en 298" and aspell is working again.
    But I still don't know where the word "xray" came from, nor why aspell thought it meant there should be an "/usr/lib/aspell-0.60/xray.cset" file... ???????
    End Update (Original post below)
    I think I did something stupid... And it broke aspell.
    What I did was: I was spellchecking a LyX document (which uses aspell) and
    I accidentally added a misspelled word. Whenever I've done that in the past
    I simply opened my ~/.aspell.en.pws with vim, and deleted the misspelled
    word from the list. But this time I'd been using aspell indirectly and
    while I closed LyX's pop-up spellchecking utility before I switched to a
    terminal window, I didn't close LyX itself. (I didn't think it would matter
    as long as it wasn't actively spellchecking at the time...) Well I got rid
    of the misspelled word OK. When I switched back to LyX every thing seemed
    to work normally until I pressed <F7> to start up the spellchecker again.
    At that point LyX crashed...
    When I try to use aspell from the command line in a terminal window I get
    this:
    JtWdyP -> /home/jtwdyp/tmp
    >
    JtWdyP -> /home/jtwdyp/tmp
    > echo "test txt a tst file" > test.txt
    JtWdyP -> /home/jtwdyp/tmp
    > aspell -c test.txt
    Unhandled Error: The encoding "xray" is not known. This could also mean that the file "/usr/lib/aspell-0.60/xray.cset" could not be opened for reading or does not exist.
    Aborted
    JtWdyP -> /home/jtwdyp/tmp
    > ls /usr/lib/aspell-0.60/xray.cset
    ls: cannot access /usr/lib/aspell-0.60/xray.cset: No such file or directory
    JtWdyP -> /home/jtwdyp/tmp
    >
    I've tried logging into my root account and:
    UnderTree =->
    UnderTree =-> pacman -S aspell
    warning: aspell-0.60.6-4 is up to date -- reinstalling
    resolving dependencies...
    looking for inter-conflicts...
    Targets (1): aspell-0.60.6-4
    Total Download Size: 0.00 MB
    Total Installed Size: 3.79 MB
    Proceed with installation? [Y/n] y
    checking package integrity...
    (1/1) checking for file conflicts [##########################] 100%
    (1/1) upgrading aspell [##########################] 100%
    UnderTree =->
    But aspell still fails with the same error, and the file:
    /usr/lib/aspell-0.60/xray.cset
    still doesn't exist...
    Next it occurred to me that for all I know, reinstalling with "pacman -S"
    might not be as complete as installing a new package so I thought that if I
    removed aspell first, I might be able to get a cleaner install...
    UnderTree =->
    UnderTree =-> pacman -R aspell
    checking dependencies...
    error: failed to prepare transaction (could not satisfy dependencies)
    :: aspell-en: requires aspell
    :: enchant: requires aspell
    :: lyx: requires aspell
    UnderTree =->
    I'm not so sure I want to remove enchant & lyx to test that theory...
    So I guess I gotta ask, how do I go about getting a replacement
    "/usr/lib/aspell-0.60/xray.cset" file????
    jtwdyp
    J(tWdy)P
    Joe(theWordy)Philbrook
    Last edited by jtwdyp (2010-11-10 17:20:19)

    ukhippo wrote:Have you tried using “-t nat” instead of “-t NAT” in your iptables command?
    I hate you, and I love you (with emphasis on the love)...
    That did it, stupid spelling mistake trying to use NAT, bah Thank you!
    Last edited by Torxed (2014-06-04 17:52:07)

  • DVDSP 4 - Script window does not appear!

    Hi,
    since the upgrade from DVDSP3 to DVDSP4 a script can only be created but not be edited: the "Script" window (where one once was able to define a script line) keeps empty. Doubleclick on the standart command "nop" does not have any effect!
    DVDSP4 came with the latest Final Cut Studio HD package and is version 4.1.0
    The same problem occures on different G5s.
    Can anybody help?
    thx!!

    Since the upgrade from DVDSP3 to DVDSP4 a script can only be created but not be edited: the "Script" window (where one once was able to define a script line) keeps empty. Doubleclick on the standart command "nop" does not have any effect!
    See if this works
    Press F3 Key (to make sure we are on the same screen layout)
    Highlight the script in the outline
    On the bottom where the track, story script taabs are, click on script tab
    The script should have an NOP by default.
    Click on the NOP to highlight
    In Inspector (to the right) you should be able to use the pulldowns to change the NOPs
    Does this work?

  • Scripting Context - Does not work as invocable?

    Hi
    I am using the Java Scripting implementation, in my case Rhino, and actually I am very happy with it. Nearly everything runs as expected. But there is one thing regarding Context per Script, actually bindings because of variables per script.
    I had a look at http://java.sun.com/javase/6/docs/technotes/guides/scripting/programmer_guide/index.html#scopes and if I do it like that everything works fine. Now, I have a script with several functions and I want to invoke specific functions. Again I take that example and extend it to something like:
    engine.eval("function printSomething() {println(x);}", newContext);
    In my "small world^^'" this should do the same, but I have to invoke printSomething:
    Invocable inv = (Invocable)engine;
    inv.invokeFunction("printSomething");
    If I do so, I get a
    java.lang.NoSuchMethodException: no such method: printSomething
    What am I getting wrong? I want to do the same as in the example, provide another Script with another Context (specifically Bindings), but as soon as I invoke the function, it says the function is not available even if it is very much visible.
    If I remove the
    newContext
    from
    eval()
    it works, but does not have the other Binding.
    How can I make that happen?
    I hope this is the right forum and someone can "light me up" where I just see darkness right now.
    Many thanks in advance

    Your script needs something from the default context.
    When you create a new context it will not work anymore.
    Just get hold of the original context (or a copy of it) and add your bindings
    and pass that.
    Something like [http://forums.sun.com/thread.jspa?messageID=10978511#10978511]

  • SUID file "usr/bin/login" has been modified and will not be repaired

    I am recieving this and other message regarding the SUID file that disk utility will not repair.  Does anyone know what this means and how to fix it?

    It's an innocuous message that you may ignore. It will continue to appear each time you repair permissions.
    Mac OS X- Disk Utility's Repair Disk Permissions messages that you can safely ignore

  • Essmsh executes maxl script, but does not end

    Hi, I could really need some help with a Maxl script I've built for a customer.
    The script builds the account dimension several times in a row. Each time for a different Alias Table.
    I choose this method, instead of the Load Alias_Table method, because I don't want to load Aliases for all members in all dimensions. Just only for the account dimension.
    When running the script from a batch file manually, nothing seems wrong, however when running the batch file from HAL essmsh never finishes.
    This is what happens in HAL:
    a batch file is executed containing the following command:
    call Essmsh D:\JDE2GL\Bin\Maxl_UpdateOutline.txt
    The Maxl_UpdateOutline.txt contains the following Maxl script:
    login {user} {password} on {server};
    spool stdout on to 'output.txt';
    spool stderr on to 'errors.txt';
    alter database {application}.{database} unlock all objects;
    alter system unload application {application};
    import database {appliaction}.{database} dimensions
    connect as '{SQLuser}' identified by '{SQLpassword}' using server rules_file 'DmAc_Def'
    preserve all data on error append to 'D:\\JDE2GL\\Outbox\\MaxL_UpdateOutlineAc_Def.err';
    import database {application}.{database} dimensions
    connect as '{SQLuser}' identified by '{SQLpassword}' using server rules_file 'DmAc_BEL'
    preserve all data on error append to 'D:\\JDE2GL\\Outbox\\MaxL_UpdateOutlineAc_BEL.err';
    import database {application}.{database} dimensions
    connect as '{SQLuser}' identified by '{SQLpassword}' using server rules_file 'DmAc_FRA'
    preserve all data on error append to 'D:\\JDE2GL\\Outbox\\MaxL_UpdateOutlineAc_FRA.err';
    import database {application}.{database} dimensions
    connect as '{SQLuser}' identified by '{SQLpassword}' using server rules_file 'DmAc_USA'
    preserve all data on error append to 'D:\\JDE2GL\\Outbox\\MaxL_UpdateOutlineAc_USA.err';
    import database {application}.{database} dimensions
    connect as '{SQLuser}' identified by '{SQLpassword}' using server rules_file 'DmAc_SPA'
    preserve all data on error append to 'D:\\JDE2GL\\Outbox\\MaxL_UpdateOutlineAc_SPA.err';
    import database {application}.{database} dimensions
    connect as '{SQLuser}' identified by '{SQLpassword}' using server rules_file 'DmAc_ARG'
    preserve all data on error append to 'D:\\JDE2GL\\Outbox\\MaxL_UpdateOutlineAc_ARG.err';
    spool off;
    logout;
    exit;
    In the "Outbox" directory I can see the error log files, with some warnings on duplicate member names appear.
    In the Essbase Application Log file, I can see that all dimension builds were executed succesfully.
    The spool file output.txt nor the errors.txt are created when running from HAL.
    I've used this HAL procedure thousands of times with one dimension build without any problems, even with more dimension builds it didn't give any errors until recently.
    Does somebody have any ideas..? Would be much appreciated!
    Thanks,
    Rudy

    Hi,
    we work with the exit label as follows:
    alter database ...
    iferror getmeout;
    alter database ...
    iferror getmeout...
    define label "getmeout";
    spool off;
    logout;
    EXIT;
    the spool off and logout command should be part of the defined lable (in your case, too), otherwise you wouldnt logout your session if an error occurs.
    Kind regards
    André

  • Script Editor does not work. Panel blue and empty.

    Hi
    I installed Oracle Database XE yesterday on
    Acer TravelMate C300, Microsoft XP SP2 Tablet Edition
    and ..
    I cannot read SQL scripts
    I cannot access to the editing panel of Scripts Editor when I want to create a new script.
    I used System and HR login.
    The panel is blue and empty.
    Thank you for any information
    Best regards
    JRD120

    I cannot read SQL scriptsWhere you want to read SQL scripts?
    I cannot access to the editing panel of Scripts
    Editor when I want to create a new script.About which "Scripts Editor" you talking about? From TOAD?
    The panel is blue and empty.Panel??

  • CS4, script files are not showing in script panel

    I dont ever use scripts but I did have one i downloaded to use for CS3.  Its been a while but I thought I just dropped it into the Scripts folder and it would show up in the scripts panel in InDesign.  I just put that same script in my new CS4 scripts folder and its not showing up.  I even restarted ID to make sure and it still doesnt.  Is there something im forgetting?

    CS4 has a slightly different model.
    In the Scripts folder, there is a folder called "Scripts Panel". For scripts to show within the Scripts panel in InDesign, place your scripts within this internal folder.

  • Execution part of adobe reader installer does not start despite antivirus disabled and scripting turned on

    Even with antivirus off, scripting turned on, cannot install either reader or flash. Java is installed. PC is new Windows 7 Pro.

    Try the offline installer from http://get.adobe.com/reader/enterprise/
    Flash Player:
    Flash Player for Internet Exporer - ActiveX
    Flash Player for Firefox - NPAPI

  • Webcenter tutorial supporting files does not contain script, portlet

    As per webcenter tutorial, the webscentertutorial*.zip should contain script, portlets etc.
    But the download of supporting files from http://www.oracle.com/technetwork/middleware/webcenter/overview/index.html contains only the followings.
    images
    skins
    templates
    Please let me know how can I get the script, portlets and other stuffs required for completing webcenter tutorials.
    Thanks In Advance
    Priya

    Hi again
    Official doc about export resource: http://docs.oracle.com/cd/E17904_01/webcenter.1111/e10148/jpsdg_srm.htm#CFHDJBAC
    Official doc about Skin as Portal Resource: http://docs.oracle.com/cd/E25178_01/webcenter.1111/e10148/jpsdg_skin.htm#BAJFAHFG
    You have to put your path + file name to export your ear file.
    If you don't see your created file in the path that you configured then see Messages - Log of JDeveloper if you have permission problems to write.
    Regards.
    PD: Sorry i mistake talking about .mar file instead of EAR file

Maybe you are looking for