Tcsh shell "alias" command seems to be truncating file names

Terminal Utility: As a Unix geek, on trying to port a large # of tcsh shell scripts to MacOSX (10.5.6), I have found a strange compatibility issue with the tcsh script "alias" command. After entering tcsh sub-shell from bash (by typing tcsh at the bash prompt, or by setting tcsh as the default shell), and defining the alias "surf_run" by sourcing a script containing the the line:
alias surf_run 'source /Users/username/SgiNew/molsurf/csh/radix.csh'
subsequent use of the "surf_run" alias (typing surf_run at the tcsh command prompt) seems to cause the system to truncate the name of the file to about 20 characters. The radix.csh file is actually present at the defined path, but the system seems to be truncating the file name to the last 16 letters or so in this case, and thus returns the following error message:
: No such file or directory.rf/csh/radix.csh
as if it is looking for a file rf/csh/radix.csh (which is not there, because the filename has been truncated)
The number of characters retained actually varies from case to case. Another similarly obtained error message had 30 characters retained in the file name:
: No such file or directory.rtoz/rtoz/rxtst/unix/login.csh
Q: Is there any system parameter or environment variable that I can modify that will allow the tcsh shell alias command to recognize properly file paths with large numbers of characters?

I cannot reproduce this error. A long alias string works fine for me. But the error messages -- as you reproduce them here -- do not look like the string is truncated. It looks like the "No such file or directory" message is being written on top of the string. Like maybe a new line is being swallowed somewhere.
I suggest taking further inquiries to the Unix forum, under "Mac OS X Technologies".
[http://discussions.apple.com/forum.jspa?forumID=735]

Similar Messages

  • Camera raw 8.3.0.141 truncates file names

    This is a recent thing.
    I open jpg images from bridge cs6 into camera raw and save new versions from camera raw into a new folder.
    Our incoming file names contain important data but not all of the name is written when I save jpg from camera raw.
    file name length seems to max out at 60 characters or so.
    THIS WAS NOT THE CASE SOME MONTHS AGO IN THIS MACHINE.
    Our folder names are long also but the combined path + filename length  rarely exceed 230 characters.
    Our file naming system has worked for some years and photoshop does not truncate file names, only this latest camera raw.
    This is on win 7  64 bit pro machine - our filenames do not need to be compatible with anything else whatever.
    example of our file/folder naming lenghts on my win machine:
    C:\AAliikkeet\02 xxxx oierjksinth\112255_ehhsyag somajrysen fgetrakunnan paievjerho_CO_10022014_til.73673\vlc\nietalahtn, naurvkustunr_bbseh syplamaiden syrdknhhar prifakehfo_IMG2722korjattu_cpy004_5000_02.jpg
    the real names have been replaced with strings of corrensponding length so this long baby represents a long(ish) folder+filename combo in our systems.
    This is a major new problem.
    Any help appreciated - even the good old "use shorter file names, idiot" but that is not an option for me.
    We are working in an industrial environment and systems  - including file naming have been working OK for some years and I cannot change our systems just to please my latest camera raw.

    Thank you for your kind advice and interest in my problem.
    I tested:
    c:\in\v  -folder is the one that jpg is read
    c:\in\vlc is folder that the camera raw saves jpg
    original file name was:
    HIETALAHTI, TENAVAMUSKARI_VAASAN SUOMALAISEN SEURAKUNNAN PÄIVÄKERHO_cpy004_5000_02.jpg
    it is truncated into:
    HIETALAHTI, TENAVAMUSKARI_VAASAN SUOMALAISEN SEURAKUNNAN P.jpg
    I shortened the original file name and removed the scandinavian A with dots on top of it and the comma from ther file name:
    HIETALAHTI TENAVAMUSK_VAASAN SUOMAL SRK PAIVAKERHO_cpy004_5000_02.jpg
    truncates to:
    HIETALAHTI TENAVAMUSK_VAASAN SUOMAL SRK PAIVAKERHO_cpy004_5.jpg
    the scandinavian alphabet is not a problem (the file names are not always clipped in their position).but causes some extra truncating:
    HIETALAHTI-TENAVAMUSKARI_VAASAN SUOMALAINEN PÄIVÄKERHO_CPY00.jpg turns into:
    HIETALAHTI-TENAVAMUSKARI_VAASAN SUOMALAINEN PÄIVÄKERHO_CP.jpg
    and
    HIETALAHTI-TENAVAMUSKARI_VAASAN SUOMALAINEN PÄIVÄKERHO_CPY0.jpg into same
    HIETALAHTI-TENAVAMUSKARI_VAASAN SUOMALAINEN PÄIVÄKERHO_CP.jpg
    This is why I havent found a good rule in this.
    In camera raw the whole file name shows under the preview image but  in saving the image the file naming example is truncated.
    Even the longest of our file names worked flawlessly  for several years until maybe two weeks ago.
    60 characters is top length that did not truncate in this testing

  • If I rename a clip in PPro, is there a command to change the actual file name like in FCP7?

    In FCP7 I could rename a clip in FCP and then use a menu command to change the actual file name to match:
    Can I do this in PPro or Prelude?
    Thanks!
    MtD

    This option is only available in the Project Manager.
    FEATURE request

  • Truncate file name from path

    hi friends..
    i have file path
    /abc/xyz/file.pqr
    i want to truncate file.pqr
    / may be any numbers .
    plz help

    Hi,
    Search the string for '/' in loop
    eg:-
    lv_last_index type i.
    lv_last_index = 0.
    do
    SEARCH file_path FOR '/' starting at lv_last_index.
    if sy-subrc <> 0.
       exit.
    else.
    lv_last_index = SY-FDPOS.
    endif.
    lv_last_index -
    will contain last ocurrence of '/'.....
    no ur filepath will be
    file_path = file_path+0( lv_last_index ). "..specifies the within the bracket
    check if the last char is '/'.. in that case cate lv_last_index = lv_last_index - 1.
    Mark helpfull answers & close the thread.
    Regards
    Manoj

  • Unix command to make list of file name

    Hi Gurus,
    I have seen post how to process multiple file from johngoodwin.blogspot.com.
    But what is the equlivalent command in unix to list all file names.
    I want one text file will contain all text file name and another text file will contain all csv filenames.
    Need some suggestion.Please help.
    Thanks in advance.

    Hi please follow below steps.
    vi yourfilename.sh
    then in edit mode put your command
    then save it by pressing esc : q (escape colon q)
    Now your file will be there. just run that script file in OS Command.But that file should be accessible or else give the full path for that script file.
    Thanks

  • Truncated file names

    Hello, I have been using iTunes for years now, since it was first ported to the PC, and love it. However, one thing that will completely turn me away from the application is that iTunes truncates the filenames that I give tracks when importing. Much of what I'm importing is recorded by myself of lectures and songs that need more information in the file name than 35 or so characters. Is this hard coded, is it somehow changeable? If not, I'm going to have to move to another way of organizing my music & Lectures. Any suggestions / thoughts?

    i too am discouraged by the problem of truncated filenames, and i will resort to using alternative software if i cannot manage to work out some sort of reasonable fix. thankfully, i believe that i have.
    i've found that the latest release of itunes will not truncate filenames as long as the "Keep iTunes Music folder organized" and "Copy files to iTunes Music folder when adding to library" are disabled.
    browsing through older discussions, it appears that this wasn't always the case, as at least one individual reported that itunes was shortening filenames even after the afformentioned settings were disabled.
    personally, i do not mind keeping my music organized myself, and i would imagine that you will not either considering the fact that you're managing mostly lecture notes as oppossed to music albums.
    best of luck to you mate! i'll return later to view your response and to report any problems that i may encounter.

  • Why does Logic truncate file names#097864

    This is really messed up....first logic truncates the name of the file, then it can't remember where that file goes because it changed the name of it...whats up?
    same thing happens with bounces too....
    they start out like this..
    final master stereo mix B with vocals
    they end up like this...
    final master stereo mix B with#097685
    g5 dual 2gig   Mac OS X (10.3.9)  

    Well, it is not really regardless of the history of code because Logic is adopting and adapting right now. Obviously, taking on the new Apple look, feel, etc and extending it's support on the OS X platform for the future (changing frameworks) it is really not terribly difficult to limit the length of what is in the field, but if you include all the code to do it it just makes it buggier to deal with presently and in the future.
    Keeping with the frameworks, much of the code is already written-especially for a save dialogue so it is less work writing the app to just implement the frameworks you are using and instead of writing every exception in to it just move ahead programming the app as it is not it's designed to limit to 31 charachters but is not fully implemented. I think it is just as a timesaver, like if you have a certain piano sampler instrument for a song why remap all the samples to a new instrument if you are going to use it in another song-even if you only use the first 3 layers. It is basically a case of not working backwards or sideways IMO. The programmers know the destination but the code cannot simply be switched to the new frameworks/functions overnight error free. It really takes alot of work, some apps are really easy but Logic is a very deep app and it is in a very large transition right now-it also has very deep roots and some very old code. I think many people aren't aware of the amount of time, money, and resources it takes to develop apps of this scale. What is important is that the frameworks and systems used to devlop apps on OS X and because it is Apple, with all the resouces users and sister pro apps that once Logic is at that point keeping it stable and future compatible should be very easy (relatively)-which means a better app and faster development once the transition is taken care of.

  • SRST Alias command final destination

    Hi,
    I am running SRST on a 2811 router  with IOS 12.4(7).
    I have alias and call forward no answer commands configured as shown below.
    alias 1 3000 to 3001 cfw 3000 timeout 10
    alias 2 3000 to 3002 cfw 3000 timeout 10
    alias 3 3000 to 3003 cfw 3000 timeout 10
    alias 4 3000 to 3004 cfw 3000 timeout 10
    alias 5 3000 to 3005 cfw 3000 timeout 10
    call-forward noan 90123456789 timeout 10
    What I want to happen is for incomin calls to 3000 to ring on extensions 3001, 3002, 3003, 3004 and 3005 and then be forwarded to the PSTN number
    90123456789
    The config above does not work as the call-forward noan command only seems to work for calls direct to ephone-dn's rather than calls matched by the alias command.
    Does anyone know if this is possible with SRST?
    I know that this could be done using CME-as-SRST and I will go that way if I have to but I would first like to be sure that this cannot be done using basic SRST.
    Thanks

    Have done some testing and the config below seems to work:
    alias 1 3000 to 3001 cfw 3000 timeout 10
    alias 2 3000 to 3002 cfw 3000 timeout 10
    alias 3 3000 to 3003 cfw 3000 timeout 10
    alias 4 3000 to 3004 cfw 3000 timeout 10
    alias 5 3000 to 3005 cfw  90123456789
    The problem I have now is that if one of the extensions 30001, 3002, 30003, 3004 or 3005 is not available the call fails.
    These numbers are allocated to Extension Mobility profiles and the users often log out when away from the office so this is not that unusual.

  • Gatekeeper alias command

    I am trying to understand the usage of the alias command. I have two CMs and H323 ATA registered to the gatekeeper. I don't want to use tech-prefixes and I want gatekeeper to make all of its routing decisions based on the registered E164IDs. As CM does not register the E164 #s , I configured the following alias entry but it does not seem to work. Can somebody enlighten me about the usage of this command ? Thanks
    gatekeeper
    zone local home cisco.com
    zone local office cisco.com
    alias static 172.25.3.102 1720 gkid office gateway voip ras 172.25.3.102 1719 e164 3903
    no use-proxy office default inbound-to terminal
    no use-proxy office default outbound-from terminal
    no shutdown
    Router#sh gatekeeper endpoints
    GATEKEEPER ENDPOINT REGISTRATION
    ================================
    CallSignalAddr Port RASSignalAddr Port Zone Name Type Flags
    172.25.5.11 2037 172.25.5.11 2665 office VOIP-GW
    H323-ID: LabCMTrunk_1
    Voice Capacity Max.= Avail.= Current.= 2
    172.25.3.102 49232 172.25.3.102 49229 office VOIP-GW
    H323-ID: EmreHomeTrunk_1
    Voice Capacity Max.= Avail.= Current.= 0
    172.25.3.102 1720 172.25.3.102 1719 office VOIP-GW S
    E164-ID: 3903 (static)
    192.168.80.55 1720 192.168.80.55 1719 office TERM
    H323-ID: port0=333
    E164-ID: 1200
    192.168.80.55 1721 192.168.80.55 1739 office TERM
    H323-ID: port1=333
    E164-ID: 1300

    I suspect the problem is not with the alias statement but rather with anonymous device support in CCM.
    Alias statements provide the simplest form of RAS. They tell the GK to return a specific IP when a particular e164 is ARQed. No tech prefix is required, and default tech prefixes are not used in matching the e164. However, aliases _do_not_ depend on a endpoint be registered. Indeed, aliases are ideal for situations where an endpoint doesn't support ras. So there is no call state maintained in the GK.
    I believe you are seeing the failure of Anonymous Device support in CCM. CCM will not accept h225 call setups from devices it is not aware of. There are three ways to get the CCM to accept a call from an h323 endpoint:
    1) Configure the device in CCM as a h323 gateway. When a new CS from a h323 endpoint arrives, CCM compares the source IP address against those configured as gateways. If the IP is unknown, it will
    2) ARQ its GK controlled trunks. If a GK responds with an ACF, then CCM will accept the call. If it receives an ARJ, or there are no GK controlled trunks, CCM will reject the Call. Also, since aliases don't require the GK to maintain call state information,
    3) You may override this behavior in CallManager Service parameters by setting "Accept Unknown TCP Connection" to true. This is not a good idea as it could open you up to toll fraud.
    HTH,
    Michael
    PS. please remember to rate posts.

  • Hyperlinks from my MSWord files suddenly don't work because "/FirefoxHTML\Shell\Open\Command" has somehow been added to the end of each URL.

    When I click to open the hyperlink in my Word file, the message I get in Firefox is "The requested URL /submissions.htmlFirefoxHTML\Shell\Open\Command was not found on this server." When I delete that portion of the URL, the website opens fine. What can I do to make the hyperlinks work properly?

    Thanks for the suggestion. I tried it, but it didn't work. The link information is written correctly on the MSWord page. But when I click on it and the Firefox tab opens, the page can't be found because "FirefoxHTML\Shell\Open\Command" has been added to the end of each URL. Might it help if I reset Firefox?

  • FirefoxHTML\Shell\Open\Command is appended to URLs selected in Excel, Windows 8, ver 27.0.1

    When clicking on a link in MS Office 2007 components such as Excel, FirefoxHTML\Shell\Open\Command is appended to the URL causing the search to 404.
    I am using Windows 8 on a Sony Vaio, and version 27.0.1 of firefox.
    Firefox is up to date, and is my default browser.
    Web research shows this is a recurring problem with issues dating back to very early versions.
    This began happening after my last update to the current version

    Try to redo the default browser setting and temporarily set another browser as the default browser.
    *https://support.mozilla.org/kb/How+to+make+Firefox+the+default+browser
    *https://support.mozilla.org/kb/Setting+Firefox+as+the+default+browser+does+not+work
    You can also check for problems with DDE.
    *http://kb.mozillazine.org/Windows_error_opening_Internet_shortcut_or_local_HTML_file_-_Firefox

  • Excel is adding FirefoxHTML\Shell\Open\Command when I click on a hyperlink

    I added a hyperlink in an Excel document. When I click on it Firefox adds FirefoxHTML\Shell\Open\Command to the end of the string. How do I get it to stop?

    Assuming that you are opening a bookmark, right-click that bookmark and select '''Properties''', then un-check the preference for '''''Load this bookmark in the sidebar''''', and then click Save.
    Using JavaScript buttons on web pages for "Bookmark this Page" causes that preference to be selected when saving the bookmark in that manner. So, don't use those buttons, use the "Bookmark this Page" feature that is built into Firefox instead.

  • Error message HKEY_LOCAL_MACHINES\software\classes\quicktime\qt\shell\open\command

    hi all
    been given as a birthday prezzy an i pod touch, i tunes and quicktime refuses to install but can download , keeps coming up wth the following error msg.
    HKEY_LOCAL_MACHINES\software\classes\quicktime\qt\shell\open\command
    help!!
    alan

    Hello, I am having a similar problem as described here. Except there are a series of other registry keys with restricted access. In an attempt to completely uninstall quicktimes to reinstall with itunes 7, I tried deleting these registry keys and was unable. I found this post and tried to change permisions and was still unable. the error messages I recieve when I try to install quicktimes stand-alone or itunes
    iTunes + QuickTime
    Error 1905.Module C:\Program Files\QuickTime\QTOCONTROL.dll failed to unregister
    HRESULT -2147220472. Contact your support
    personnel.
    plus a few others like this one with slightly varrying keys, then the installation continues before a final error message appears and closes the installation
    Could not open key:HKEYLOCALMACHINE\Software\Classes\QuickTimePlayerLib.QuickTimePlayerApp\CLSID. Verify that you have sufficient access to that key, or contact your
    suppoer persoannel.
      Windows XP  

  • Which .bash does "do shell script" commands use?

    The "do shell script" command uses the Bourne shell "sh". But I am curious to know which .bash it uses to define the shell environment variables.
    I ran into a problem installing a third-party unix program which required new environment variables to be defined in order to execute. Defining these variables and executing this program from the terminal worked fine.
    But executing it within a "do shell script" command in an Applescript - the program died silently because the environment variables it required were not defined in the shell Applescript uses. It appears to invoke a new shell which does not inherit the environment variables defined in your home user shell.
    (I found this out by 'do shell script "set"' which listed the environment variables Applescript knows about - the ones I defined for the third-party program were not listed).
    A "brute force" way of fixing this is to pass the environment variables directly:
    do shell script "export THIRDPARTY_ENVVAR=blah; /usr/sbin/thirdpartyprogam"
    This works but not exactly elegant, particularly when you need to pass a number of variables.
    So - any better ways to do this? Can I edit the .bash Applescript uses, and where is it?
    Thanks.

    Another option that might work for you... if you are saving/distributing your AppleScript as an "Application bundler" is to group all your shell env. variables and other commands into a separate shell script file. Then include the shell script inside your app bundle. Locate the shell script at runtime and run that with "do shell script".
    For example, create "myShellScript.sh"
    #!/bin/sh
    export THIRDPARTY_ENVVAR=blah
    # ... more variable declarations..
    /usr/sbin/thirdpartyprogam
    # ... more shell commands...
    Store the shell script file inside your AppleScript bundle's Contents -> Resources folder (remember to make the shell script executable). Then your AppleScript can find your shell script at runtime and execute it like this:
    set ssPath to quoted form of POSIX path of (path to resource "myShellScript.sh")
    set stdout to do shell script ssPath
    Steve

  • Wait for a "do shell script" command to finish

    i have an applescript that has to call a few external applications. i currently do this by setting the exact syntax of the external command in a string variable, then issue a "do shell script cmd" (seen many examples across the net using this standard)
    my applescript continues beyond these commands. how do i set the applescript to either wait for the above external command to finish, or not?
    regards
    jingo_man

    Usually AppleScript will wait for a shell script to complete before it continues, but adding an ampersand (&) at the end of the shell script command will make it run in the background, which allows the AppleScript to continue. See Technical Note 2065: do shell script in AppleScript for more information.

Maybe you are looking for

  • XML parser with document support

    Hi all, For a whole week now, I m still looking for a nice (but lite) XML parser for J2ME applications. Of course I found kXML 2 parser but I'm confused. kXML 2 implements the XmlPull API (xmlpull.org) so you can parse easly an XML file with function

  • Why do I get "there was an error working with this photo"?

    In LR 4.2, have begun seeing this error message when I apply a keyword to an image. When I move to an adjacent image and return to the original, the keyword shows it has been applied. I cannot see any problems with viewing or editing images but am co

  • When I shut down firefox 6.0 it will not let me open it back up untill I reboot. I have vista 64bit

    have hp pavilion

  • Animated racetrack

    Hello, I am trying to create an animated race track in which odd car or balls in my case have to ride around the course. The problem is once i split the program up and create a ball class which handles the positioning of the ball color etc... it does

  • Image Dust Removal Mask

    Is it possible to create a mask with the ability to remove all the spots without worring about where the clone comes from? This would be a great addition to LR.