Tags for: linux

Tags | | | |
Upgrading Debian Etch to Lenny


Tags | | |
the df command causes your system to hang


Tags |
Have linux remove all but on directory


Tags | | |
SELinux blocking php and PostgreSQL


Tags | | | |
Install and configure SQUID3 on Debian Lenny (5.0)


Tags | | |
Remove /manual from Apache in CentOS


Tags | |
Opensolaris IPFilter compared to IPtables


Tags | | |
Showing the difference between runlevels


Tags | | | |
Nessus 4.2 on Backtrack 4 Vmware


Tags | | |
Centos ISCSI initiator


Tags | | |
Building a DHCP server with NAT using Debian Lenny


Tags | | | |
Allow iptables apt-get and DNS values


Tags |
Installing LARGE partitons in Linux


Tags | | |
Installing XFS file system on Debian Lenny


Tags | | | |
Move postgres database


Tags | | | |
Snort on Debian Lenny with remote postgreSQL server logging


Tags | | |
Enable ntfs format on debian or ubuntu with gparted


Tags | |
Find and delete emtpy directories


Tags | |
Count files in a directory


Tags | |
Installing NRPE (Nagios Client) on CentOS 5


Tags | |
Modify the HP printer LCD screen


Tags |
Changing a users id UID in linux


Tags | |
Searching for text in files with Linux


Tags | | | |
Binding Debian / Ubuntu to an Active Directory


Tags | |
Ubuntu iMac black screen on install



Comments

From Matthew
2010-01-21 01:46:04

Modifying the Acrobat installation worked for me (Outlook 2007, Windows 7 Home Premium, Adobe Professional 8.2). Thanks.


From Patrick
2010-02-08 13:32:11

Yes! Thank you for the suggestion, this was driving me completely nuts!


From Brad
2010-02-08 14:43:20

Glad I could help!


From Matt
2010-02-25 18:20:57

Thank you very much! This was driving me nuts, too. :)


From joshua
2010-03-18 13:57:03

This is nice and works well but how do you go about getting information back? I know there is a .recv() and a .recvfrom() but the sting they return is not really that useful. Is there a better way?


From Brad
2010-03-18 14:15:27

Sure, what kind of information are you looking to get back? The easiest way to to tell if what you want is possible is by running your command first through MEL, then view the out put. If what you wanted was confirmation of a render command you can dump the output of the Python to a temp file then parse that file, a hack for sure but just the first thought off the top of my head.


From joshua
2010-03-18 18:09:39

for example if I wanted a list of the selected icons the .recv() would return something like this. bob1 bob2 bob3 bob4 (cube thihg) Is there a way to get it to come back as a list instead of string?


From Brad
2010-03-18 18:46:43

I don\'t think so, BUT you can take that input and reformat it inside python, lets take your example using .recv()

arr1 = [] data = .recv(1024) print data for i in data.split(\" \"): print i
What I am doing there is taking the result of your 1 line space delimited string and looping over it, creating an array (arr1) and as I loop over it, adding the result to the array. Now if I want to call one of those elements I can just use print arr1[n] where \"N\" is the element number of the array. If I did arr1[0] in your example it would be \"bob1\". Since each item is now an element, you can do what ever you want with them.

From Joshua
2010-03-19 08:40:11

Thank you I don\'t know why I didn\'t think of using split sooner. maya.send(r\'ls-sl;\') sel1 = maya.recv(1024) sel2 = sel1.split()[:-1] maya.send(r\'select -r %s;\' % sel2[1]) You don\'t need the (\' \') if you just leave it blank it will split it into words automatically. And the [:-1] will get rid of that unknown character. O how did you get your code in that box?


From Phileh
2010-04-14 01:50:11

Thanks, just had the same problem...


From
2010-06-10 20:35:03

Find Ben Forta, books, show you how to use client side validation that embed javascript to flashform automatic,


From X
2010-08-30 02:24:54

This is a huge security hole. If you save credentials for admin to use \"runas /savecred /user:administrator benignapp\", there\'s nothing to stop a malicious script from doing \"runas /savecred /user:administrator downloaded-virus.exe\". It\'s like a global SUID bit!


Feel free to leave a comment or question

Name: (Optional but appreciated):

Comment:


Security Code: