Custom keybinding for shell command in emacs

Hello all,
I am a very frequent LaTeX user, and I often have BibTeX references and pstricks images, so I end up compiling my document several times for every document. To speed up this process, I wrote a short, simple shell script (below)
#!/bin/sh
file="$1"
latex \\nonstopmode\\input $file.tex
bibtex $file
latex \\nonstopmode\\input $file.tex
latex \\nonstopmode\\input $file.tex
dvips $file.dvi
ps2pdf $file.ps
This has been much nicer, since instead of typing all of those things, I simply type "mytex file."
Being the greedy person that I am, I would now like to compile it from emacs without typing the shell command, kind of like C-c C-f when I am just compiling as usual. I don't have very much experience with custom keybindings in emacs anyway, but I certaintly do not know how to call a particular shell command including the current file name.
Any tips?
Last edited by keither (2010-02-15 15:18:42)

First of all, you will probably save some compilation time by using an "inteligent" script such as latexmk. You should look into it if you have not done so already.
Second of all, AUCTeX will also suggest the "correct" next step when using C-c C-c. Also, you should consider just adding latexmk or your own script to the C-c C-c cycle. Here are some examples from my .emacs
(eval-after-load "tex"
'(progn
(add-to-list 'TeX-command-list
(list "View in Acrobat Reader" "acroread %o"
'TeX-run-command nil t))
(add-to-list 'TeX-command-list
(list "Count Words" "texcount -inc %s.tex"
'TeX-run-command nil t))
(add-to-list 'TeX-command-list
'("Synctex" "/home/rasmus/.scripts/synctex-emacs %t %b %n" TeX-run-TeX nil t) t)
If you want to use a script as the one suggested by yourself you would want to look into the last exampe ("Synctex").
--Rasmus

Similar Messages

  • ACS SE - Shell Command Authorization

    Hi Sir,
    I have deployed an ACS Solution Engine 4.1(1) Build 23 to provide AAA services for routers/switches login.
    I'd like to create a user group that is restricted to only "show" commands when the users log in to the network devices.
    I have done the following steps:
    (1) Shared Profile Components -> Shell Command Authorization Sets
    Added a new set. Call it NOC. I added the command "show". For "Unmatched Commands", I selected Deny. I also checked "Permit Unmatched Args".
    (2) Group Setup.
    Created a new group. Call it NOC. For Enable Options, I selected "Max Privilege for any AAA Client" value of "Level 7".
    For TACACS+ Settings, I checked "Shell (exec)" and set "Privilege level" to 7.
    For Shell Command Authorization Set, I selected NOC for "Assign a Shell Command Authorization Set for any network device".
    (3) User Setup.
    Created a new user. Call it noc. Assign it to group NOC. All parameters point to group setting.
    (4) The AAA commands on the routers/switches are as follows:
    aaa new-model
    aaa authentication login default group tacacs+ local enable
    aaa authorization exec default group tacacs+ local
    aaa accounting exec default start-stop group tacacs+
    aaa accounting commands 15 default start-stop group tacacs+
    aaa accounting system default start-stop group tacacs+
    ip tacacs source-interface Loopback0
    tacacs-server host 10.10.10.10 key 0 tacacskey
    When the noc logs in, he's given privilege level 7. True, he's limited to only "show" commands. He can't do "config t". However, he also can't do "show run". Is it normal? I'd need him to be able to do "show run". How to configure the ACS?
    Thank you.
    B.Rgds,
    Lim TS

    Hi Narayan,
    Appreciate your detailed configuration steps.
    My intention is to create a shell command authorization set that allows a user group to only perform "show" commands, including complete config of "sh run". This group is not allowed to configure anything.
    See my original post for my configuration steps. I tied the group to the above authorization set and assigned it Level 7.
    The outcome is, the user can do all "show" commands except "sh run". Of course, he is not authorized for configuration commands.
    I came across the following link:
    http://www.cisco.com/en/US/tech/tk59/technologies_tech_note09186a00800949d5.shtml
    Perhaps it explains the problem here. If I understand it correctly, a user can't see in the output of "sh run" what he can't configure at his privilege level or below.
    The same issue happens when I configured the following:
    no aaa new-model
    username noc privilege 7 password test
    privilege exec level 7 show
    line vty 0 4
    login local
    The user "noc" can't do "sh run".
    Thank you.
    B.Rgds,
    Lim TS

  • Need a power shell command for Front End fail over?

    We have a Lync 2013 infrastructure with 2 front ends and 2 edges. 
    The environment was setup by a partner and the servers were configured for failover in case one goes down in the pool. 
    However the last time windows updates were applied and the primary FE had to be restarted, the secondary FE did not automatically switch over as the active server and it caused a companywide outage. 
    In speaking with the contractor, they said that well no it would not automatically do this, you need to run a Lync PowerShell to have it switch over. 
    My BS radar went off, but I wanted to ask you if this sounds right or is possible. 
    If it must be done, could you give me the power shell command.
    Thanks

    Hi,
    Did you solve the issue with the help of the people above provided?
    If you use a Lync server Enterprise edition, it is recommended to deploy at least three FE servers.
    If you use two Lync server Standard edition for DR,
    when one of the servers fails in the Pool Pair, the administrator need to manually failover the pool to the other member of the Pool Pair using the
    command: Invoke-CsPoolFailover -PoolFQDN <Pool1 FQDN> -DisasterMode -Verbose
    The Automatic failover and failback for
    Voice option and the associated time intervals in Topology Builder apply only to the voice resiliency features that were introduced in Lync Server 2010. Selecting this option does not imply that the pool failover discussed in this document is automatic.
    Pool failover and failback always require an administrator to manually invoke the failover and failback.
    You can refer to the link below about how to failover a pool: 
    http://technet.microsoft.com/en-gb/library/jj204678.aspx
    Best Regards,
    Eason Huang
    Eason Huang
    TechNet Community Support
    Does it help, yes and no.  FYI, we are running Enterprise Edition front ends for our single pool.  The new environment was setup as a proof of concept and we installed the bare minimum # of servers at the time.
    The articles suggested from above pretty much just say if one of your FE's goes down, bring it back up as soon as possible.  Both of our FE's need windows updates applied ASAP and it could an hour or more (likely).  Here is a quote from the article:
    If for some reason you need to bring both servers down at the same time, do the following when the downtime for the pool is finished:
    The best practice is to restart both Front End Servers at the same time.
    If the two servers cannot be restarted at the same time, you should bring them back up in the reverse order of the order they went down.
    If you cannot bring them back up in that order, then use the following cmdlet before bringing the pool back up:
    Reset-CsPoolRegistrarState -ResetType QuorumLossRecovery -PoolFQDN <FQDN>
    The last time the main FE went down for service, we left the secondary FE on but there was still an outage.  Then brought back the formerly active FE fist and service was restored.  Basically I need to know how to switch the passive to the active
    node before/while the primary is offline.  And if required once both FE's are back up, to switch the service from the secondary that became active, back to the primary server as it was before.  Make sense?  Perhaps I'm still missing something
    after reading the articles.  The powershell commands list just updating the topology after both servers come back online.

  • Shell command for opening the PDF

    Is there any shell command for opening the PDF Directly from Webdynpro...
    thanks and regards
    Dhinakar

    Hi,
       This is not possible in WD. That is because you cannot trigger anything on the client side in WD.
    Regards,
    Satyajit.

  • Shell Command Authorization Sets for device using NDGs??

    Hello. I NDGs configured, there is a group called "GR1" with 30 switch.
    This group is set up a Shell Command Authorization set called "Monitoring", in which only show commands, ping and traceroute are allowed.
    I want to let users switch in only 10 of the group "GR 1" to configure certain interfaces and IP addresses, switch to the other not. ! Note: The number of interface is not the same for each switch, one can be FA0 / 1, but for others it may fa0/3.etc.
    I want to retain these 10 switch within the group "GR1", it is possible to make this configuration?
    - Thanks

    I've edited my earlier post to make it more clear. You can assign Shell Auth. Sets at the user,group or NDG level.More details are mentioned on the following link:
    http://www.cisco.com/en/US/docs/net_mgmt/cisco_secure_access_control_server_for_windows/4.2/user/guide/SPC.html#wpmkr697610
    AFAIR, one device (AAA Client) can be part of only one NDG, so you cannot achieve your requirement by using per-NDG Shell Command Authorization sets. Unless you break up the NDG into more than one NDG.
    You can assign the authorization set at the user or group level (after putting the appropriate users in the group) to achive your requirement.
    You could also use the 'privilege' command on the switch to make sure that users can see only the commands you want. E.g. when a user logs in he will be placed at level 7. Now you can keep the undesired commands at level 15 and bring down the desired commands at level 7. All other users would be assigned a lower level (e.g level 5), so they wont be able to run these commands.
    Regards
    Farrukh

  • Wanted: shell command for disabling shutdowns

    Hi @ all,
    I'm administering a little workgroup. Unfortunately most of them shut down their machines before going home.
    I found a way diabling the shutdown possibility (click on shutdown button doesnt invoke anything) by using Onyx.
    But I would like to diable this functions for all users without the need of installing Onyx on each and every machine.
    I'm certain that there must be a shell command, but I just wasnt able to google it up.
    Thanks for any help in advance
    joh

    Consider this link: http://bit.ly/bPiNDF
    Granted, it's for 10.5, but it should remain viable. I shouldn't need to remind you to test this on a non-production system first =)
    Just remember that even if you DO manage to make it very difficult for users to shutdown the system, users are very persistent, and you may soon find machines that are shutdown via the cord being pulled from the wall.
    It may be better to issue a policy that states that shutting down their machine is "wrong" or something to that effect.
    /A\V/
    Message was edited by: Deviros Fixed typo

  • Any good Power Shell command or script to see connected users in real time for Lync 2013

    Are there any good Power Shell commands or scripts that can tell you how many users are connected to a pool in real time so you can evaluate the current load. I have 3 FE servers in a single pool. We just started deploying the lync client to the users and
    were curious as to how many are actually connected. I saw a number of home made scripts but really didn't care for any of them. I just want to find out how many users that are actually connected to the pool at a particular moment so we can see how many users
    are really using the product.

    Have you looked at Pat Richard's get-csconnections script?: http://www.ehloworld.com/269
    Please mark posts as answers/helpful if it answers your question.
    Blog
    Lync Validator - Used to assist in the validation and documentation of Lync Server 2013.

  • Shell command for mailbox DB, and public folder DB

    Are there any exchange shell commands that will list all mailbox databases on a server, including name, path where it resides and size.
    Same for public folder database(s).

    There you GO...
    Get-MailboxDatabase –Status | format-table Name,Server,LogFolderPath,EdbFilePath,DatabaseSize
    Get-PublicFolderDatabase –Status | format-table Name,Server,LogFolderPath,EdbFilePath,DatabaseSize
    Cheers,
    Gulab Prasad
    Technology Consultant
    Blog:
    http://www.exchangeranger.com    Twitter:
      LinkedIn:
       Check out CodeTwo’s tools for Exchange admins
    Note: Posts are provided “AS IS” without warranty of any kind, either expressed or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose.

  • New keybind for command click.

    I just started using the new pages app that came with Mavricks, and I have used the command click option before to select multiple objects without selecting everything inbetween. But that doesn't seem to work anymore. Is there a new Keybind for this? Thanks for the help.

    Nope. Gone. Apple took it away.
    You should still have Pages '09 in your Applications/iWork folder.
    Peter

  • Shell Command To Applescript

    Hello, I'm making an Automator-Applescript app that copies icons from files and folders to other files and folders of one's choosing and it's coming along nicely with one exception-copying pictures. As you know, when you get info on a picture, it's icon appears on the top left of the info window. Some pictures have a generic icon and others have an icon of the picture. So, in order for this app to work properly using a picture, the picture must have an icon of the picture and not the generic icon. I have a shell script that will give a picture the desired icon but I was wondering if I can convert the shell script to an Applescript or if there's an Applescript that will achieve this. According to the Automator app the shell is /bin/bash, the pass input:as arguements, and the script is sips -i "$@" Thanks!
    eMac G4   Mac OS X (10.4.9)  

    Thanks for the reply. I tried the script and received-Warning: i not a valid file - skipping
    Error 4: no file was specified
    Try 'sips --help' for help using this tool.
    Actually, what I'm trying to do is to add this shell command to an Applescript. Here's the Applescript- on run {}
    set theSourceObject to my DetermineLocationOfObject("source")
    set theTargetObject to my DetermineLocationOfObject("target")
    my ApplyCustomIcon(theSourceObject, theTargetObject)
    end run
    to DetermineLocationOfObject(ObjectType)
    display dialog "Is the " & ObjectType & " object going to be a file or a folder?" buttons {"File", "Folder"} default button 2
    if button returned of the result is equal to "File" then
    set theObject to choose file with prompt "Please locate the " & ObjectType & " file."
    else
    set theObject to choose folder with prompt "Please locate the " & ObjectType & " folder."
    end if
    return theObject
    end DetermineLocationOfObject
    to ApplyCustomIcon(SourceObject, TargetObject)
    my HandleInfoWindow("source", SourceObject)
    my HandleInfoWindow("target", TargetObject)
    end ApplyCustomIcon
    to HandleInfoWindow(ObjectType, theObject)
    tell application "Finder"
    activate
    set InfoWindow to name of (open information window of item theObject)
    end tell
    tell application "System Events"
    tell application process "Finder"
    tell window InfoWindow
    keystroke tab
    if ObjectType is equal to "source" then
    keystroke "c" using command down
    else
    keystroke "v" using command down
    end if
    end tell
    end tell
    end tell
    tell application "Finder"
    close window InfoWindow
    end tell
    end HandleInfoWindow
    As you can see this is a good script for copying and pasting icons but when you choose a picture with a generic icon it will copy the generic icon. So, I was hoping to add this shell command to create the desired icon for the picture before the copying and pasting event. Thanks again.
    eMac G4   Mac OS X (10.4.8)  

  • How to run 'Get-AssignedAccess' or 'Set-AssignedAccess' power shell commands in c# Application

    Hi,
    I have console application using which i am trying to run power shell command  like 'Get-AssignedAccess' or 'Set-AssignedAccess'.
    i am using below code for this it is throwing exception 'Get-AssignedAccess' doesn't exist in cmdlet which is correct because these commands belongs to function category.
    using (PowerShell pwInstance = PowerShell.Create())
                            pwInstance .AddScript("Get-AssignedAccess");
                            var result = pwInstance .Invoke();
    How can we execute this kind of command using c#?
    Thanks,

    Hi prakashlight,
    Thank you for comming back and tell us the result. For more information about how to run PowerShell script in C# language, you can refer to this blogpost here:
    Executing PowerShell scripts from C#
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Error in compiling a custom dictionary for text analysis

    I got a error when I tried to compile the custom dictionary for the Text Data Processing transformor. I am looking for help to solve the problem or work around the error.
    The error is as follows:
    [ERR] Can not create file [C:/ws_sclg.1]
    Here is the command I was using:
    C:\Program Files (x86)\SAP BusinessObjects\Data Services\bin> tf-ncc -d ..\TextAnalysis\languages -o C:\Sample Source\Dictionary C:\Users\jack\Documents\Visual Studio 2008\Projects\XMLFile1.xml
    It appears to me that the command was trying to create a log file or some temporary file in my C drive root directory, and the OS denied the action. The Data Services is running on a Windows 2008 Server R2. I wonder if there is a way to specify where to create this log file or tempory file?
    Any insight or help is appreciated. Jack

    Instead of calling the command from the windows shell command interface, I was able to call the compilier from Data Services; this problem is now resolved.

  • IS there an easy way to execute a shell command and capture its output...

    From an application? I am thinking of using fork and then waiting for the PID to finish and write the output to a file which I then read, but this seems clunky. Also there are big warnings about frameworks getting hosed if you use fork, although the "Forked" process will exec the shell command and the one that gets the PID the original process might be 'safe' from this framework corruption. I am not certain of this, it is just a guess.
    If there was something like a process class where I could specify the executable and parameters, and read from it's std out until the process completed, that would be better. Or even get a callback when the process exited and an asynchronous callback for each line of data it produced.

    That was just in response to OrangeKay implied accusation that I was some kind of hard-core Microsoft programmer that sneered at apple programmers.
    You may want to book mark this, I will go over a brief history which should clear a lot of things up, about me, and about what I am doing.
    Lets turn the clock back to 1998: I graduate from a university with a BS in Computer science. I had been interning at a local defense contractor writing missile testing software. This was on a proprietary hardware and so there was no "Microsoft" involved. At this point I think Bill Gates = Satan. Microsoft = Kingdom of Evil.
    I get a job as a video game programmer. I write code from the Playstation, then the Playstation 2 and Gamecube. I do this for several years and again I have zero interest / knowledge of the Microsoft world beyond it being the OS which I am forced to use to play my games on. I had fought this by trying to use OS Warp and other things, but eventually since I mainly had a PC for games I had to get a windows OS, the first being NT 3.51 and then Win98 cause NT4.0 didn't support past directx 3 and everyone was using directX 5 or 6 (I do not remember).
    As video game companies go, they do not last. Everyone wants to write video games, anyone with some cash wants to start a company. 1 in 1000 will make it 5 years. Needless to say, as our company began to tank, I got laid off, along with my entire team. I have cash in the bank, no big deal, right?
    Well the economy started to suck, video game developers were closing down like crazy so the market was saturated with x-video game developers. 2 Years go by, no job, and almost no money. Then I get a call from some guy who wants me to come for an interview about 75 miles away. It is in a place I do not want to go. So they interview me, and ask me a bunch of general programming questions.
    I leave the place, and by the time I get home there is a message on my machine asking me if I would take the job at a ridiculously high salary (I live in an area where the cost of living is very low). Well I am about out of money and its a job offer with a huge salary, so I take it.
    I get there and guess what? I get to work on this "agent" that runs on windows boxes. I have NO IDEA how to program on windows. Windows is evil, why would I want to taint myself with this vile Microsoft APIs? I really have no choice, I have to learn how to develop on windows. I get to use visual studio 6, which I do not understand because I used the Borland compilers (Borland != Microsoft).
    Well I start to slug through it all and get familiar with MSDN and CodeProject and CodeGuru. As the years pass, I begining applicate the examples and detailed documentation that MSDN has. I have a start page on MSDN which covers every category of operation which will take you through a tree of choices and lead you to the exact area related API calls you will need to use to do whatever you want. Now I do not think MS = Evil anymore. I switch to DevStudio 2005 which is really nice. The debugging, IDE, and everything is great.
    Now the other half of this application resides on a server. That server is a Linux box, and the server app is written in Java. My stuff is still C++.
    One day, I get a request, and a eMac with 10.4 PPC to make a Mac version. Now I am at the point of Mac programming as I was with Windows when I started. I didn't know anything about it. I was looking for CodeWarrior cause I used that in the past, but alas, CodeWarrior is no more. I get XCode. I see all sorts of options to make a project. BSD project, Carbon, Cocoa, etc... What the heck any of these. I can guess the BSD one is very basic, but I do not understand Carbon vs Cocoa.
    So what do I do? I make a basic carbon app and make a basic Cocoa app. The carbon app looks like some kind of C++ framework. The Cocoa app? "Is this another language like Java or C#? It doesn't look like a C++ language."
    Guess which choice I make. Carbon. I struggle through this looking at the docs, posting on CodeGuru and whatnot until someone finally tells me about these forums and warns me about how unfriendly people are. So I make an account and start asking questions. I eventually get my app to be multi-platform to run on windows and Mac by using some API abstractions which are easy to do since I had abstracted the Windows API by my own class wrappers.
    I ask a lot of questions, very few are ever answered because I am not asking about simple things, like making windows and how to get button clicks and that stuff. I am asking stuff like, "How do you change the DNS? or How do I know when a user is about to log out?" Currently on my side list as I type this, I have 27 unresolved questions. I probably found workaround for most of them, or figured it out eventually.
    On this forum mostly people are helpful when the do respond, except for OrangeKay. He definitely has a chip on his shoulder.
    Over the past few years my Opinion of MS has improved greatly while my opinion of Macs (from the programmer's point of view) has dropped considerably. XCode still isn't as good as VS6 which is like 15 years old, never mind Dev studio 2005 or 2008. The documentation is scattered, not easy to find, occasionally wrong, or simply missing. The examples may not even compile or contain non-existent functions. It is unbelievable how bad it is.
    If Steve Jobbs wants to really get a large coder population he ought to spend some of those billions (or is it trillions) of dollars on a team that will re-write the current documentation in a correct, easy to understand, with full examples, arranged in a logical manner for everyone to use. He should say, "See MSDN online? I want something like that, only better, it has to be MUCH better." Then he should say to the XCode team, "Look at DevStudio 2008. XCode should do EVERYTHING that does. Once that is done, IMPROVE XCode even more to make 2008 look like a joke."
    To bad the Developer aspect of the "Apple Experience" has not gotten "End User" treatment. Then it would be a joy to develop on Macs.
    So here I am asking for help on certain things. You wonder why I do not use Cocoa. Maybe I should, maybe I shouldn't. My first look didn't look promising, and a quick look at the docs is all about GUI's. My app has NO GUI. Again, Cocoa? Maybe it will still work, but the examples and stuff I see are all about GUIs.
    When I get time, I will look at cocoa even further. MFC on windows is MOSTLY about GUI stuff, but there is a small section of it that does not deal with GUIs. CString is a great MFC class. I had to get rid of it though cause Mac's do not have a similar class. I use CStdString which is a platform agnostic CString replacement.
    I hope you are all a little more enlightened. BTW my Application which runs on Mac's and PCs on no less then 3 MILLION Machines has not crashed ONCE in the past 2 years. There have been bugs, but nothing that crashed it. The bugs were mostly unforeseen situations, like what if the guy has 15 network adapters that are all LIVE? I didn't plan for that, there were complications, the server got some strange data, but it didn't crash (My app, not the server. It crashes on occasion still). Are there bugs in my code? I am sure there are, but I do not know of any, because if I did, it would be fixed.

  • Shell Command(session) Authorization in ACS 4.2

    Hi, All~
    Our customer is using ACS 4.2.
    They would like to restriction shell command(session) in ACS 4.2.
    For examples,
    MSFC => 'session slot [slot #] processor [processor #]' => Command authorization failed.
    Is this possible to deny for shell 'session' command?
    Have a nice weekend.
    Thanks.
    Bruce Lee

    Bruce:
    If you are running Cisco IOS then yes it is possible.
    AFAIK the MSFC runs on 5600  hardware and that runs IOS so I think it is possible for you
    look into this example
    http://www.cisco.com/en/US/products/sw/secursw/ps2086/products_configuration_example09186a00808d9138.shtml
    please rate if useful and let us know if you got any problem with the configuration.
    Regards,
    Amjad
    Rating useful replies is more useful than saying "Thank you"

  • Shell commands in applescript noob

    Hi all this is my first post in these forums and I come seeking help with a certain script I'm writing for my current college job. The purpose of the script is to install creative cloud from a server and this is as far as I've got. First I can get as far as setting the correct directory in the server by doing:
    do script "cd /Volumes/applications/Mac/'Adobe Creative Cloud'/'Enterprise - enduser'/Build"
    now when I press run the terminal screen pops up just fine with no errors in the right directory. However I've been reading up that to do other commands in the same shell I must do do shell script. When doing this however terminal doesn't do...anything. The reason why I was trying this is because my next command would be initiating the install which is the command:
    "installer -verbose -pkg 'enterprise_Install.pkg' -target /" with adminitrator privilages
    Now my question is how would formulate this within applescript? Thanks.

    do shell script "cd /Volumes/applications/Mac/'Adobe Creative Cloud'/'Enterprise - enduser'/Build ;  installer -verbose -pkg 'enterprise_Install.pkg' -target / with administrator privilages"
    You got the double quote in the wrong place.
    do shell script "cd /Volumes/applications/Mac/'Adobe Creative Cloud'/'Enterprise - enduser'/Build ;  installer -verbose -pkg 'enterprise_Install.pkg' -target / " with administrator privilages
    It is easier to diagnose problems with debug information. I suggest adding log statements to your script to see what is going on.  Here is an example.
        Author: rccharles
        For testing, run in the Script Editor.
          1) Click on the Event Log tab to see the output from the log statement
          2) Click on Run
        For running shell commands see:
        http://developer.apple.com/mac/library/technotes/tn2002/tn2065.html
    on run
        -- Write a message into the event log.
        log "  --- Starting on " & ((current date) as string) & " --- "
        --  debug lines
        set unixDesktopPath to POSIX path of "/System/Library/User Template/"
        log "unixDesktopPath = " & unixDesktopPath
        set quotedUnixDesktopPath to quoted form of unixDesktopPath
        log "quoted form is " & quotedUnixDesktopPath
        try
            set fromUnix to do shell script "sudo ls -l  " & quotedUnixDesktopPath with administrator privileges
            display dialog "ls -l of " & quotedUnixDesktopPath & return & fromUnix
        on error errMsg
            log "ls -l error..." & errMsg
        end try
    end run

Maybe you are looking for

  • PDF export error

    In my report i need to show some text like "Manual & Basic are included". So i have written this into static text view, included view in compound layout. But when i trying print this report in PDF format it is giving me error "Sax Parser returned an

  • GT80 Titan SLI - pushing back technological boundaries in new and exciting ways

    Another GT80 review to share with you guys, this one's from the UK media, the Eurogamer. http://www.eurogamer.net/articles/digitalfoundry-2015-msi-gt80-titan-sli-review How can you not want it? I am saving my piggy bank to get myself one of this cool

  • Date Conversion- Formula

    Hi All, I have Info Object 0DOC_DATE - Data type (DATS ) Length - 8 ; in transfer rules i need to write a formula to convert the date format as MM/YYYY Instead of DD/MM/YYYY. Please suggest to write formula in transfer rules ASAP. Thanks

  • Repeating values on top of every page

    Hi, I have two selected values, A en B. Want them to be displayed in two columns, grouped by the value of A. The header row is repeated on every page, but I want something more. Following is what I want, below that is what I get. A1 B1 (page1) B2 B3

  • Returning the next day?

    Hi, i hope somebody can help me, I'm new to Java and I'm stuck with some work that I am doing. I don't want an answer, just a hint as to where to get started. I have created a class called Date, which uses switch statements to return a string of the