Is it possible to attach several DTraces to a single process?

Hi,
Is it possible to attach dtrace to a single process twice or more times? (with different scripts)?
Each time I tried, it fails with the message
"failed to grab pid 13407: process is traced"
I ended up with two simplest scripts
dtrace -n 'END { printf("BYE"); }' -p 13407
dtrace -n 'BEGIN { printf("Hi there"); }' -p 13407
but they failed with the same message.
Does this mean that it is impossible to attach several scripts to a single process?
Or do I misunderstand something?
Thank you,
Vladimir

Hi Vladimir,
The documentation isn't very clear on this, but -p (and -c) "grab" the target process which means they take exclusive control of it like a debugger would. If you instead pass the pid as a script parameter and replace all $target with $1 (or whatever) dtrace doesn't "grab" and you can attach as many things as you want (including a debugger, though it's likely to blow up if you set a breakpoint in a function dtrace has messed with)
Regards,
Ryan

Similar Messages

  • Attach several pictures to an e-mail?

    Is it possible to attach several pictures to the e-mail using iPhone? If so, how do I do it?
    Thanks!

    Yes.
    With the Camera Roll or Photo Album selected, select the icon at the bottom left of the screen with a right facing arrow. Select each photo you want to attach to an email - a red circle with a white check mark will be placed on the selected photo. Select the Share button followed by selecting Email.
    If you have already started composing an email and you want to add a photo, select the same icon at the bottom of the Camera Roll or Photo Album, select the photo or photos you want to add to the email followed by Copy instead of Share. Return to the email message and select the body of the message to bring up the paste selection.

  • How do I attach several files to an outgoing email?

    I am trying to attach several files to one outgoing email address.  I am looking for feedback on how this can be done or to be informed if it is not possible.  Thank you.

    Basically, it is not possible unless they are photos (max of 5) from with the Photo app or documents fom specific pps such as Goodreader. Otherwise, you open the app, select the document and then email.

  • Possible to attach ethernet hub to AEBS?

    Dear All,
    Does anyone know if it is possible to attach a (non-switching) ethernet hub to my 2009 (dual-antenna, 802.11n capable) Airport Extreme Base Station?  I've just wired my house up with Cat-5e and would like more than the three available ethernet ports, but want the AEBS to continue with all NAT/routing.  I'm reluctant to get involved with a second router and subnetwork, because in my experience that's a pain ...
    Thanks in advance,
    arn

    I am not familiar with this particular device, but the link says that
    This switch is a Plug & Play installation and no configuration is necessary.
    So, if you take that at face value, the device is a switch.
    The problem with this device is that you will lose performance. Your AirPort Exteme has 10/100/1000 Ethernet LAN capability. The switch that you are looking at is only 10/100.
    Suggest that you look for a 10/100/1000 or what is known as a Gigabit Ethernet switch. Netgear or Cisco products would be a very good choice.

  • Hello. I want to use my iphone as a viewing screen for a usb endoscope, (its a small camera on a long cable for inspecting down piping and such) with an app is it possible to attach the usb to my iphone using a adapter to watch the live video feed on th

    Hello. I want to use my iphone as a viewing screen for a usb endoscope, (its a small camera on a long cable for inspecting down piping and such) with your app is it possible to attach the usb to my iphone using a adapter to watch the live video feed on the iphone?
    Thankyou.

    Hello. I want to use my iphone as a viewing screen for a usb endoscope, (its a small camera on a long cable for inspecting down piping and such) with your app is it possible to attach the usb to my iphone using a adapter to watch the live video feed on the iphone?
    Thankyou.

  • Is it possible to choose several folders for the Recognize text-operation in Adobe Acrobat X Pro?

    Is it possible to choose several folders for the Recognize text-operation in Adobe Acrobat X Pro?

    You can choose multiple files, or a single folder. If you choose a folder,
    though, all of the files in all of its sub-folders will be processed as
    well.

  • Is it still possible to attach sticky notes to a pdf file? Which Adobe product will enable this?

    Is it still possible to attach sticky notes to a pdf file? Which Adobe product do I need to do this?

    Both Acrobat and Reader 10/11 can, and previous versions of Reader can if the document is enabled to allow it. Mobile versions of Reader can too.

  • Is it possible to attach 2 monitors or TVs on a MacbookAir?

    Hi all,
         Could you help me please?
         Is it possible to attach 2 monitors or TVs on a Macbook using HDMI/DVI-D Cables and split the macbook's image on these devices?
         Thanks in advance!

    JasonFear wrote:
    I've got a Matrox Dual Head 2 Go hooked up to double 24" monitors on my 13" MBA as we speak (over MiniDisplay Port). So it'll absolutely work. Thunderbolt will allow you to daisy chain devices over a single outbound wire, whereas with the Matrox setup you have a rather large box that interfaces between the displays and the machine. That's what is doing the heavy lifting and allows two (and even three) external monitors over a single MiniDisplay Port.
    Very glad to hear this.  Is this a Matrox Dual Head 2 Go DP Edition?  I have the Digital Edition (which has VGA in and DVIx2 out) and with my 2006 MBP, I was able to use the DVI-VGA adapter, and get two 19" external monitors at 1280x1024 each (total rez 2560x1024) to work just fine.
    I just upgraded to the new 13" MBA and got a MiniDisplay Port -> VGA adapter, hoping it would just work. But it doesn't.  The resolutions that are in the drop-down are for the most part all single-screen resolutions.  If I choose 2048x768, both screens fire up, but 1024x768 looks fairly horrible and I'd rather do just the single screen at 1280x1024.  But I sure am missing two screens right now
    Thank for your help.

  • Is it possible to attach two 27 inch displays the new generation 17 inch MacPro?

    Is it possible to attach two 24 inch displays to the new generation 17 inch Macbook Pro?

    You can attach one monitor to the Thunderbolt port and the other to a USB port. At present the Thunderbolt port in and of itself can't support two monitors, and the one third-party box I know of that enables connecting two monitors to a mini-Displayport hasn't yet been updated for Thunderbolt compatibility. Here's the kind of adapter you'd need for the USB connection:
    http://eshop.macsales.com/item/NewerTech/VIDU2DVIA/
    Note that the USB connection would be limited to a maximum of 2048 x 1152 resolution with that adapter (or less with many other USB adapters). That's enough for Apple's 24" LED display, if that's the one you were thinking of. USB's slowness also imposes performance limitations on USB-connected displays, so the one connected via Thunderbolt is the one you'd want to view any fast-action video or games on.
    Oops, I've just noticed that you asked in your subject line about 27" displays and in the body of your query about 24" displays. The short answer with respect to 27" displays is no, you could only run one at its native resolution. You could add a 24" display via USB.

  • Re: Is it possible to convert several licenses  to one shared license

    Re: Is it possible to convert several licenses  to one shared license?

    Hi Signe Hansen,
    You cannot convert several retail license to volume.
    Regards,
    Romit Sinha

  • Hi is it possible to attach PDF as a attachment to the work item

    hi is it possible to attach PDF as a attachment to the work item

    Hi!
    Maybe it help's u:
    <a href="http://searchsap.techtarget.com/loginMembersOnly/1,289498,sid21_gci1076071,00.html?NextURL=http%3A//searchsap.techtarget.com/expert/KnowledgebaseAnswer/0%2C289625%2Csid21_gci1076071_tax299365%2C00.html%3Fbucket%3DETA">Attaching a .pdf file to a work item</a>

  • Is it possible to attach a sound effect to a photo?

    Hi,
    I was wondering if it is possible to attach an audio file sound effect to a photo i have in iphoto or any other application so that the file would play the sound when the photo is opened to view?
    Thanks Conor

    Conor
    Not with iPhoto, no.
    You could make a slideshow in iMovie and attach the sound using that.
    Regards
    TD

  • Is it possible to attach a bluetooth speaker to my mac and still use the mac's speakers at the same time?

    Is it possible to attach a bluetooth speaker to my mac and still use the mac's speakers at the same time, so I can have music in two rooms (from the mac in the lounge and the  bluetooth speaker in the kitchen? It seems to be a choice of either/or as when I pair my speaker the sound stops from the mac's speakers. 

    No.

  • Is it possible to open several documents simultaneously in Adobe Digital Editions?

    Is it possible to open several documents simultaneously in different windows in Adobe Digital Editions like Adobe Reader ?

    As far as I know, it isn't.
    You can run both ADE2.0 and ADE 1.7.2 at the same time, with different books open.
    Also Sony Reader (free download intended for Sony eReader users, but works even without) will let you have a third book open.
    ~~~
    There are lots of bugs in ADE2.0.  Try replacing ADE2.0 with the older but more reliable v1.7.2.
    (You can have them both installed at once if you like.)
    Version 1.7.2, it is a little difficult to find, available on Adobe site for Windows and for Mac.
    http://helpx.adobe.com/digital-editions/kb/cant-install-digital-editions.html
    The forum software is sometimes corrupting the link above.  There shouldn't be a blank in 'editio ns.html'.  The following redirects to the same page: http://tinyurl.com/diged172
    https://ebookstore.sony.com/download/

  • Is it possible to open several copies of Adobe Digital Editions simultaneously?

    Is it possible to open several copies of Adobe Digital Editions simultaneously?

    Same answer as on your other thread.

Maybe you are looking for

  • Show only 1 product in dynamic list

    Hi all and thank you very much for your help. My question concerns this page: http://www.energywa.co.za/accessories/avr/search.php The list is a dynamic dropdown which gets it's data from a MySQL DB. You will notice that there are some products which

  • Is anyone else having issues adding artwork in iTunes 12

    I recently upgraded to iTunes 12, and I can't add artwork to my movie files in iTunes 12.  I can drag cover art into the artwork window like I used to able to do in iTunes 11, but when I click OK it doesn't save it. Also, what happened to the Artist

  • Where can I get detailed documentat​ion on the 'IVA' vision vi's created by NI Vision Assistant

    I use the NI Vision Assistant a lot.  Usually I ask it to create a vi automatically from the script.  However, the resulting vi contains several 'IVA' vi's that are completely undocumented (from what I can see).   Where can I get more info on these?

  • Why 512mb and not 1

    Why will my computer only recognize the Zen Nano Plus 52mb mp3 player and not the gig model? Have tried everything. Even updating the firmware on the gig, but it never becomes recognized properly. Anyone?

  • Biztalk 2013 SFTP Adapter Properties

    Hello All, In Biztalk 2010, some applications use the On Receive After property in the SSHFTP adapter to remove the file after receive. How can this be done in SFTP in the Biztalk 2013.Any help is greatly appreciated. Thanks