Find unowned files via command line?

I'm interested in making a list of files not owned by any package and sending it to a text file I can review. I found this thread, which suggests pacpal (link appears to be broken now) and this script. I could try the script, but I noted from a bit back that the Arch news page listed a one-liner for finding unowned packages in the preparation of moving /usr/lib -> /lib:
$ find /bin /sbin /usr/sbin -exec pacman -Qo -- {} + >/dev/null
Here's the script linked to above, for reference:
#!/bin/bash
# Utility to generate a list of all files that are not part of a package
# Author: Spider.007 / Sjon
TMPDIR=`mktemp -d`
FILTER=$(sed '1,/^## FILTER/d' $0 | tr '\n' '|')
FILTER=${FILTER%|}
cd $TMPDIR
find /bin /boot /etc /lib /opt /sbin /usr /var | sort -u > full
pacman -Ql | tee owned_full | cut -d' ' -f2- | sed 's/\/$//' | sort -u > owned
grep -Ev "^($FILTER)" owned > owned- && mv owned- owned
echo -e '\033[1mOwned, but not found:\033[0m'
comm -13 full owned | while read entry
do
echo [`grep --max-count=1 $entry owned_full|cut -d' ' -f1`] $entry
done | sort
grep -Ev "^($FILTER)" full > full- && mv full- full
echo -e '\n\033[1mFound, but not owned:\033[0m'
comm -23 full owned
rm $TMPDIR/{full,owned,owned_full} && rmdir $TMPDIR
exit $?
## FILTERED FILES / PATHS ##
/boot/grub
/dev
/etc/X11/xdm/authdir
/home
/media
/mnt
/proc
/root
/srv
/sys
/tmp
/var/abs
/var/cache
/var/games
/var/log
/var/lib/pacman
/var/lib/mysql
/var/run
/var/tmp
Is there any reason to use a script like the above compared to such a simple script, which appears to just be spitting a list of all files in /bin, /urs/sbin, and /sbin into `pacman -Qo`. What I can't figure out is what the end of the command does (the `-- {} + > /dev/null`). From various attempts to pipe that output into a text file, I've noticed that it just gets filled with the owned files... so I'm guessing something in there is filtering so that unowned get printed to stdout and owned go to /dev/null. I can't figure out how to redirect the unowned to a text file.
Thanks for any suggestions.

alphaniner wrote:"--" is often used to tell the program there are no more options. I didn't see it in the manpage, but that's the case with pacman as well.* The "{} +" is part of the find -exec argument, search for {} in the find manpage.
Ah. Thanks for that. I'd been googling things like " linux command line '-- {}'" and not getting any hits. I combined the arguments incorrectly! Thanks for letting me know that this was part of `find`, as I was also looking in the man page for pacman wrongly.
alphaniner wrote:
The >/dev/null is redirecting stdout (list of owned files) to oblivion. The list of unowned files (and other errors) goes to stderr. To redirect stderr you use "2>" so try
find /bin /sbin /usr/sbin -exec pacman -Qo -- {} + >/dev/null 2>unowned_files
Perfect, and now I understand how `pacman -Qo` is working: it sends the answer to stdout if it knows the answer and to stderr if it doesn't find a hit. Thanks!

Similar Messages

  • Adobe Reader 11 (XI) won't open file via command line

    Hello,
    I have posted this question to probably inapropriate topic earlier today, so I am repeating it again.
    I installed newest Adobe Reader XI today and when I tried to open certain pdf file via command line, it reported a syntax error. Now, this syntax worked so far on versions 9 and 10  (I checked today with them and it is working), so my question is - where can I find new syntax, if there is any? Googling didn't help. Or what else could wrong?
    In previous versions I was able to open pdf file (on page 5) like this (all was taken from Help file "Open parameters")
    "CompletePathToAdobeReader"/A"page=5""CompletePathToPDF",
    ie
    "C:\Program Files (x86)\Adobe\Reader 11.0\Reader\AcroRd32.exe"/A"page=5""d:\V2\DataSheet.pdf"
    but now - not that it doesn't open specific page, but it doesn't want to open file at all.
    edit:
    Operating systems running: Windows 7, Windows XP
    Thank you.
    Message was edited by: v604

    Yes, it reported correctly becuase there is a syntax error in your command. Try spaces between the /A switch and open parameter. Try this:
    "C:\Program Files (x86)\Adobe\Reader 11.0\Reader\AcroRd32.exe" /A "page=5" "d:\V2\DataSheet.pdf"
    Hope this helps.
    -Sumit

  • Assessing Command 'Analyze Source Files' via Command Line when running TestSTand Deployment Utility

    Our Software Configuration Manager is running the TestStand Command Line Deployment Build Tool (Ref: https://decibel.ni.com/content/docs/DOC-38947).
            When he builds the application,  the code will not be at the same location it was in development. 
    If you are Manually running the TestStand Deployment Utility, This is not a problem because everything is relative in the workspace.   Simply go to the Distributed Files Tab (of TestSTand Deployment Utility) and hit the, "Analyze Source Files" button.  This finds the required files and apparently creates an updated hard path to be used during the build (probably in the *.tsd).
    PROBLEM:  We auto-run the Command Line Deployment Build Tool (Command Line), and we do not have access to the, 'Analyze Source Files' command.
                As a result, our build consist of many warnings and the output is missing many files (the location of the files have not been updated).
    If we could access the 'Analyze Source Files' Command via command line, that would fix the issue. 
    FYI:  We use an automatic builder called Quick Build as our builder.
    Attachments:
    TestSTand Deployment Utility-Distributed Files Tab.PNG ‏76 KB

    Unfortunately it looks like Analyze Source Files does not have a command equivalent for the command line based on this article and attached PDF:
    https://decibel.ni.com/content/docs/DOC-38947
    That may be a good post for the TestStand Idea Exchange for consideration in future versions of TestStand.
    Michael K.

  • How to specify xml file to populate form fields in the PDF file via command line?

    Hi,
    I would like to specify xml data file to populate my pdf file using command line.
    The form was Reader extended.
    I've tried the following syntax :
    Acrobat.exe /A "zoom=100" "C:\example.pdf"#xml="C:\example.xml" but got an acrobat error: "the file name, directory name or volume label syntax is incorrect".
    Where am I wrong?
    Thanks!

    >If I understand correctly you propose something like this
    Something like, yes.
    >
    >Acrobat.exe /A "zoom=100" "xml=C:\example.xml" ....
    Certainly, neither will work. /A is followed by a single quoted
    string. There must be some separator, but I don't know what it needs
    to be (as I was alluding to in my first reply).
    To see if there is any hope, just try without the zoom= completely. In
    any case you can set the zoom in the document properties.
    Aandi Inston

  • Changing the override file via command line arguments

    Is there a way to change name of the file Coherence uses to override coherence-config.xml via a command line argument? I'd like to specify different override filenames in different environments.

    I get the message that:
    2006-02-13 16:53:27.699 Tangosol Coherence 3.0.1/317 <D5> (thread=main, member=n/a): Optional configuration file "/home/noah/tools/tangosol-config/tangosol-coherence-override-dev.xml" is not specified
    I specified the following as the startup:
    java -Dtangosol.coherence.override=/home/noah/tools/tangosol-config/tangosol-coherence-override-dev.xml -Dtangosol.coherence.log.level=5 -classpath /home/ncohen/tools/tangosol-config:/home/noah/tools/tangosol/lib/coherence.jar com.tangosol.net.CacheFactory
    Where the tangosol-config directory contains my override file tangosol-coherence-override-dev.xml
    If I change the name of the override file solely in the cmd prompt, it doesn't find any of them. It just gives me the optional configuration file ..... is not specified. How does one go about fixing this? Thx.
    Message was edited by:
    noah

  • Best way to save XML results to a file via command line

    I'm trying to set up an easy way that I can save my XML results to a file via the command prompt.
    Here's my current command line statement
    sqlcmd -S server/database -E -i C:\XML.sql -o C:\Test.xml -h -1 -m 1 -y0
    That works about 95% of the way. The problem is it still inserts a couple random line breaks and throws my whole XML off.
    The whole idea of doing this via the command line is because it would be nice to link it to a batch file that runs every so often. Is there a better way to execute a SQL statement and have its contents saved properly to an XML file?

    If I copy and paste the result via SSMS into a file and save it as an XML, I can view it properly in browsers. If I use the code above, I get among other errors: 
    This page contains the following errors:
    error on line 2 at column 202: Encoding error
    The XML file gets processed in a 3rd party app. The file that I paste directly works fine, but the file that the script produces generates errors and it won't work.

  • Submit --Title via command line.

    So I'm submitting files via command line. All is working well but I need to set the Title and description on the fly from a script. so I'm attempting to use the --title and --description options. But the submission fails when I do. Anybody out there make this work on 10.6.4? Example below.
    podcast -s my.server.com -u user -p password --submit --file /path/to/file --workflow "Workflowname" --title "my new podcast --description "This is the Description"

    Well that's a start
    Looking at man podcast, there is not any '--title' or '--description' options on the command line, which could explain why they don't work
    It looks like podcast expects this data to be passed in via a metadata .plist file.
    Here's the example from man podcast:
    podcast --server myserver.example.com --user username --pass password
    --submit --file /path/to/file --workflow 'Workflow1' --metadata
    /path/to/metadata.plist
    where the file /path/to/metadata.plist should look something like (again, taken from man podcast:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
      <dict>
        <key>Author</key>
        <string>Professor Rick Hathaway</string>
        <key>Comment</key>
        <string>Strangely, things fall together. Sorry Yeats.</string>
        <key>Copyright</key>
        <string>Copyright (c) 2007 Vox Clamantis College</string>
        <key>Description</key>
        <string>Gravitation is a phenomenon through which all objects attract each other.</string>
        <key>Keywords</key>
        <string>gravitation phys13</string>
        <key>Title</key>
        <string>Lecture 4 -- The theory of gravitation</string>
      </dict>
    </plist>

  • Setting IIS W3C Extended Log File settings via command line, registry or configuration file

    I am currently in need of a way to set IIS W3C Extended Log File settings via command line, registry or configuration file.  More specifically the 'Bytes Sent (sc-bytes)' and 'Bytes Received (cs-bytes)' settings that are not enabled by default. 
    If anyone knows where I can locate these setting (outside of the GUI) for all IIS versions that would be greatly appreciated.

    I believe I have found a valid solution. You must have the WebAdministration module loaded.  I hope this helps someone.
    Use the following syntax to view current W3C fields:
    Get-WebConfiguration -filter system.applicationhost/sites/sitedefaults/logfile | select-object -expandProperty logExtFileFlags
    Use the following syntax to set W3C fields:
    Set-WebConfigurationProperty -Filter System.Applicationhost/Sites/SiteDefaults/logfile -Name LogExtFileFlags -Value "Date,Time,ClientIP,UserName,SiteName,ComputerName,ServerIP,Method,UriStem,UriQuery,HttpStatus,Win32Status,BytesSent,BytesRecv,TimeTaken,ServerPort,UserAgent,Cookie,Referer,ProtocolVersion,Host,HttpSubStatus"}

  • Error -402 upon installing an extension via Command Line

    When I try to install my extension via command line, i receive the following error message:
    "Failed to install, status = -402!"
    What does this error code -402 mean?
    I found someone with a similar problem in the forums: Re: Extension Manager CC failed to install extension
    He/She had file names containing non-ASCII characters. But i couldn't find any non-ASCII characters in my project or extension.
    Thanks in advance,
    Andreas

    Hi Carl,
    unfortunately unchecking the option did not work. This is what I found in the logs:
    ExManCoreLibrary.log:
    [Debug] Thu Oct 09 09:01:03.891 2014 (SignatureValidator.cpp, 48) -CSignatureValidator::verifySignature: Begin to validate signature /var/folders/yw/dnnpmtmn2xldzzs62gkq_lhm0000gn/T/tmp8212baaaaa
    [Debug] Thu Oct 09 09:01:03.924 2014 (SignatureValidator.cpp, 68) -CSignatureValidator::verifySignature: End to validate signature /var/folders/yw/dnnpmtmn2xldzzs62gkq_lhm0000gn/T/tmp8212baaaaa
    [Error] Thu Oct 09 09:01:03.924 2014 (SignatureValidator.cpp, 105) -CSignatureValidator::verifySignature: ZXPSign_verify() failed for "/var/folders/yw/dnnpmtmn2xldzzs62gkq_lhm0000gn/T/tmp8212baaaaa", sign_status is 50!
    [Error] Thu Oct 09 09:01:03.924 2014 (ExtensionBase.cpp, 170) -CExtensionManager::validateExtension: CSignatureValidator::verifySignature() failed for "/var/folders/yw/dnnpmtmn2xldzzs62gkq_lhm0000gn/T/tmp8212baaaaa", status is -402!
    [Error] Thu Oct 09 09:01:03.924 2014 (ExtensionBase.cpp, 607) -CExtensionBase::install: validateExtension() failed for zxp /Users/******/Desktop/plugin.zxp, status = -402!
    log0.log:
    10/9/2014 09:01:03.622 [INFO] com.adobe.exman.controller.InstallExtensionCommand execute(), InstallExtensionCommand is executed.
    10/9/2014 09:01:03.624 [INFO] com.adobe.exman.controller.session.composite.CompositeUpdateSession initiate()
    10/9/2014 09:01:03.624 [INFO] com.adobe.exman.controller.NotifyOperationBeginEndCommand execute(), NotifyOperationBeginEndCommand is executed.
    10/9/2014 09:01:03.625 [DEBUG] com.adobe.exman.controller.gateway.ExternalGateway ###call2extensionMgr airNotifyOperationBeginOrEnd,29,install,1,0
    10/9/2014 09:01:03.625 [INFO] com.adobe.exman.view.ExManApp handleNotification(), got notification: NOTIF_ACTION_BEGIN
    notification body: [object ActionBeginParameter]
    10/9/2014 09:01:03.625 [DEBUG] com.adobe.exman.view.ExManApp @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    10/9/2014 09:01:03.625 [DEBUG] com.adobe.exman.view.ExManApp NOTIF_ACTION_BEGIN
    10/9/2014 09:01:03.625 [INFO] com.adobe.exman.ExManGUI canAcceptUIInput(), set to: false
    10/9/2014 09:01:03.626 [INFO] com.adobe.exman.controller.AppWinOperationCommand execute(), AppWinOperationCommand is executed. notification=APPWIN_MODALDIALOG_POPUP
    10/9/2014 09:01:03.626 [INFO] com.adobe.exman.controller.gateway.ExternalGateway ###appWinOperate(), sessionId: 30, opCode=10, mouseX=0, mouseY=0
    10/9/2014 09:01:03.626 [DEBUG] com.adobe.exman.controller.session.composite.CompositeRollBackSession CompositeRollBackSession: executeNextSession()+++
    10/9/2014 09:01:03.627 [DEBUG] com.adobe.exman.controller.session.composite.CompositeRollBackSession CompositeRollBackSession: supper.executeNextSession
    10/9/2014 09:01:03.627 [DEBUG] com.adobe.exman.controller.session.composite.CompositeSession executeNextSession: run a frontend session
    10/9/2014 09:01:03.628 [INFO] com.adobe.exman.controller.session.frontend.FrontendInstallExtensionSession initiate()
    10/9/2014 09:01:03.628 [INFO] com.adobe.exman.controller.NotifyOperationBeginEndCommand execute(), NotifyOperationBeginEndCommand is executed.
    10/9/2014 09:01:03.628 [DEBUG] com.adobe.exman.controller.gateway.ExternalGateway ###call2extensionMgr airNotifyOperationBeginOrEnd,31,install,1,0
    10/9/2014 09:01:03.629 [INFO] com.adobe.exman.controller.session.composite.CompositeRollBackSession onChildSessionProgress() session total: 1 session lenght: 0 progress: 0 calculatedProgress: 0
    10/9/2014 09:01:03.629 [INFO] com.adobe.exman.view.ExManApp handleNotification(), got notification: NOTIF_PROGRESS
    notification body: 0
    10/9/2014 09:01:03.629 [DEBUG] com.adobe.exman.view.ExManApp @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    10/9/2014 09:01:03.629 [DEBUG] com.adobe.exman.view.ExManApp NOTIF_PROGRESS
    10/9/2014 09:01:03.629 [INFO] com.adobe.exman.view.ExManApp app got progress: 0
    10/9/2014 09:01:03.633 [DEBUG] com.adobe.exman.controller.session.backend.InstallExtensionSession initiate
    10/9/2014 09:01:03.633 [INFO] com.adobe.exman.controller.gateway.ExternalGateway installExtension(), the params to external install: sessionid=28, sourcepath= /Users/*******/Desktop/plugin.zxp
    10/9/2014 09:01:03.633 [DEBUG] com.adobe.exman.controller.gateway.ExternalGateway ###call2extensionMgr externalInstallExtension,28,/Users/*******/Desktop/plugin.zxp
    10/9/2014 09:01:03.634 [DEBUG] com.adobe.exman.view.ExManApp @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    10/9/2014 09:01:03.644 [DEBUG] com.adobe.exman.view.ExManApp NOTIF_RESET_SEARCH_BOX
    10/9/2014 09:01:03.890 [INFO] com.adobe.exman.controller.gateway.Application ###Receive airCallBack Message28,9,30
    10/9/2014 09:01:03.891 [INFO] com.adobe.exman.controller.gateway.ExternalGateway handleResponse(), parameters of handleResponse:
    sessionId= 28
    responseType= 9
    responseBody=30
    10/9/2014 09:01:03.891 [INFO] com.adobe.exman.controller.session.backend.BackendSession com.adobe.exman.controller.session.backend::InstallExtensionSession got parameters in handleResponse:
    responseType= 9
    10/9/2014 09:01:03.891 [INFO] com.adobe.exman.controller.session.backend.BackendSession responsebody 0 :30
    10/9/2014 09:01:03.891 [INFO] com.adobe.exman.controller.session.frontend.FrontendInstallExtensionSession onBackendSessionProgress(), 30
    10/9/2014 09:01:03.892 [INFO] com.adobe.exman.controller.session.composite.CompositeRollBackSession onChildSessionProgress() session total: 1 session lenght: 0 progress: 30 calculatedProgress: 30
    10/9/2014 09:01:03.892 [INFO] com.adobe.exman.view.ExManApp handleNotification(), got notification: NOTIF_PROGRESS
    notification body: 30
    10/9/2014 09:01:03.892 [DEBUG] com.adobe.exman.view.ExManApp @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    10/9/2014 09:01:03.892 [DEBUG] com.adobe.exman.view.ExManApp NOTIF_PROGRESS
    10/9/2014 09:01:03.892 [INFO] com.adobe.exman.view.ExManApp app got progress: 30
    10/9/2014 09:01:03.933 [INFO] com.adobe.exman.controller.gateway.Application ###Receive airCallBack Message28,1,-402,com.crossmedia_solutions.assetInformation
    10/9/2014 09:01:03.934 [INFO] com.adobe.exman.controller.gateway.ExternalGateway handleResponse(), parameters of handleResponse:
    sessionId= 28
    responseType= 1
    responseBody=-402,com.crossmedia_solutions.assetInformation
    10/9/2014 09:01:03.934 [INFO] com.adobe.exman.controller.session.backend.BackendSession com.adobe.exman.controller.session.backend::InstallExtensionSession got parameters in handleResponse:
    responseType= 1
    10/9/2014 09:01:03.934 [INFO] com.adobe.exman.controller.session.backend.BackendSession responsebody 0 :-402
    10/9/2014 09:01:03.934 [INFO] com.adobe.exman.controller.session.backend.BackendSession responsebody 1 :com.crossmedia_solutions.assetInformation
    10/9/2014 09:01:03.937 [INFO] com.adobe.exman.controller.session.frontend.FrontendInstallExtensionSession onBackendSessionFail()
    10/9/2014 09:01:03.938 [INFO] com.adobe.exman.controller.NotifyOperationBeginEndCommand execute(), NotifyOperationBeginEndCommand is executed.
    10/9/2014 09:01:03.938 [DEBUG] com.adobe.exman.controller.gateway.ExternalGateway ###call2extensionMgr airNotifyOperationBeginOrEnd,32,install,0,0
    10/9/2014 09:01:03.938 [DEBUG] com.adobe.exman.controller.session.composite.CompositeSession notifySuperSessionFail: set LASTSESSION FAILED
    10/9/2014 09:01:03.938 [INFO] com.adobe.exman.view.ExManApp handleNotification(), got notification: NOTIF_ACTION_FAIL_WITH_PARENT_SESSION
    notification body: [object SessionCompleteParameter]
    10/9/2014 09:01:03.939 [DEBUG] com.adobe.exman.view.ExManApp @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    10/9/2014 09:01:03.939 [DEBUG] com.adobe.exman.view.ExManApp NOTIF_ACTION_FAIL_WITH_PARENT_SESSION
    10/9/2014 09:01:03.939 [ERROR] com.adobe.exman.view.ExManApp null extension!
    10/9/2014 09:01:03.939 [INFO] com.adobe.exman.view.ExManApp onSessionCompleteFail()
    10/9/2014 09:01:03.940 [INFO] com.adobe.exman.view.ExManApp onActionFailHelper()
    10/9/2014 09:01:03.940 [INFO] com.adobe.exman.ExManGUI canAcceptUIInput(), set to: false
    10/9/2014 09:01:03.940 [INFO] com.adobe.exman.controller.AppWinOperationCommand execute(), AppWinOperationCommand is executed. notification=APPWIN_MODALDIALOG_POPUP
    10/9/2014 09:01:03.941 [INFO] com.adobe.exman.controller.gateway.ExternalGateway ###appWinOperate(), sessionId: 33, opCode=10, mouseX=0, mouseY=0

  • How to merge multiple documents via command line (Adobe Acrobat Pro 9.3.2)?

    I'm searching solutions to merge multiple documents (all stored in one folder) via command line or batch file to a single PDF-File...
    Is there a way to do this?
    Finaly I want to control this from a application written in MS-Access. So, perhaps there are some features already integrated in Access to do this?
    Thanks for answer!

    If you have some programming experience you could probably do this using VBA from within MS Access to control Acrobat via OLE.
    Lots of examples on the Web.
    Hope this helps

  • How to launch a specific TestStand sequence file from command line?

    I've written a TestStand sequence file launching other sequence files.
    When I launch it via the TestStand GUI, it works well.
    Now, I would like to launch it via command line. Could you indicate me how to proceed?

    Hi,
    I think this link can help you:
    How to Run a Sequence File When Opened from Windows Explorer
    http://digital.ni.com/public.nsf/websearch/146D372C1F807E6D862567E7004881AB?OpenDocument
    regards,
    Alexandre D
    NIF

  • HT3924 Target display mode connects but only displays desktop background, no files or command lines

    I have connected my early 2014 MacBook to a late 2012 imac and connected them via Thunderbolt cable.  Pressing Command F2 causes the screen on teh iMac to change to teh MacBook background screen, but does not display any desktop files or command lines.  Any ideas how to fix this?

    Hi tdmone,
    Welcome to the Support Communities!  The resource below may help you with the Target Display Mode options for connecting your Macbook and iMac:
    Target Display Mode: Frequently Asked Questions (FAQ) - Apple Support
    http://support.apple.com/en-us/HT3924
    The table below shows iMac computers that support TDM, the required cables, and the port of the computer to which you are connecting the iMac.
    iMac Model
    Cable Supported
    Port on Source Computer
    iMac (27-inch Late 2009)
    Mini DisplayPort to Mini DisplayPort
    Mini DisplayPort or Thunderbolt
    iMac (27-inch Mid 2010)
    Mini DisplayPort to Mini DisplayPort
    Mini DisplayPort or Thunderbolt
    iMac (Mid 2011)
    Thunderbolt to Thunderbolt
    Thunderbolt
    iMac (Mid 2012 and later)
    Thunderbolt to Thunderbolt
    Thunderbolt
    Are you connecting via the Thunderbolt ports on both computers?
    How do I enable TDM?
    Make sure both computers are turned on and awake.  
    Connect a male-to-male Mini DisplayPort or ThunderBolt cable to each computer. 
    Press Command-F2 on the keyboard of the iMac being used as a display to enable TDM. 
    Note: In Keyboard System Preferences, if the checkbox is enabled for "Use all F1, F2, etc. keys as standard functions keys," the key combination changes to Command-Fn-F2.
    Can I use a third-party keyboard or older Apple keyboard to enable TDM?
    Some older Apple keyboards and keyboards not made by Apple may not allow Command-F2 to toggle display modes. You should use an aluminum wired or wireless Apple keyboard to toggle TDM on and off.
    I hope this information helps ....
    - Judy

  • Undeploy an sda file through command-line

    Hi All,
          I want to undeploy an .sda file through command-line,what is the procedure to undeploy an sda file through command-line and send me the procedure for this
    Thanks & Regards,
    guru

    Hi
    Please find below the steps to undeploy thro command line :
    Shut down the sdm server
    1)SDM shutdown "sdmhome=D:\usr\sap\J2E\JCO1\SDM\program" "sdmguiport=50018" "sdmhostname=<hostname>" password="<password>" "shutdownmode=abort"
    2)sdm jstartup "mode=standalone" "sdmhome=c:\usr\sap\J2E\DVEBMGS00\SDM\program"
    3) sdm undeploy "sdmhome=D:\usr\sap\J2E\DVEBMGS00\SDM\program" "compname=c:\test.sda"
    4)sdm jstartup "mode=integrated" "sdmhome=c:\usr\sap\J2E\DVEBMGS00\SDM\program"
    5)start the sdm server again
    SDM server "sdmhome=D:\usr\sap\J2E\JCO1\SDM\program"
    Hope this helps. do not forget to reward points
    regards
    rajeshkr

  • [SOLVED] How to Crop an MP4 Video via Command-line?

    I have ffmpeg, mpg123, and mencoder. Does anyone know of a way I could use any of those to crop an mp4 video via command-line? I am trying to take off the black space above and below a video. Thanks in advance!
    Last edited by tony5429 (2009-04-12 00:12:57)

    I don't think it's possible to crop without re-encoding, but you can crop from the command line with ffmpeg and mencoder. Not sure about mpg123 - I think that's for playing audio but I could be wrong there.
    Anyway, with ffmpeg you can do cropping by using -croptop, -cropbottom, -cropleft, and -cropright. So if you wanted to crop 16 pixels off of the top and the bottom, your command line would look something like this:
    ffmpeg -i <input file> -croptop 16 -cropbottom 16 <video encoding options> <audio encoding options> <output file>
    With mencoder you use the "crop" video filter, like this:
    mencoder <input file> -o <output file> -vf crop=320:208:0:16 <other options>
    where the "320:208:0:16" means that the resulting picture is 320 pixels wide, 208 pixels high, and the 0:16 is the x,y position of the cropped area.
    These command lines are just really very basic examples - ffmpeg and mencoder have a LOT of options. Way too many to explain here. If you don't believe me, just try reading through the mencoder man page sometime. (There's an online version of it at: http://www.mplayerhq.hu/DOCS/man/en/mplayer.1.html)
    Hope this helps!!

  • How to undeploy an .sda file through command line

    Hi,
    How to undeploy an .sda file through command line.send me the related command to do it.and related information and links.

    Hi
    Please find below the steps to undeploy thro command line :
    Shut down the sdm server
    1)SDM shutdown "sdmhome=D:\usr\sap\J2E\JCO1\SDM\program" "sdmguiport=50018" "sdmhostname=<hostname>" password="<password>" "shutdownmode=abort"
    2)sdm jstartup "mode=standalone" "sdmhome=c:\usr\sap\J2E\DVEBMGS00\SDM\program"
    3) sdm undeploy "sdmhome=D:\usr\sap\J2E\DVEBMGS00\SDM\program" "compname=c:\test.sda"
    4)sdm jstartup "mode=integrated" "sdmhome=c:\usr\sap\J2E\DVEBMGS00\SDM\program"
    5)start the sdm server again
    SDM server "sdmhome=D:\usr\sap\J2E\JCO1\SDM\program"
    Hope this helps. do not forget to reward points
    regards
    rajeshkr

Maybe you are looking for