Search Results

Search: Posts Made By: nextyoyoma
Forum: OS X (Apple) 01-11-2013
2,021
Posted By nextyoyoma
Creating a hidden partition that doesn't mount automatically
I have a drive full of diagnostic images (ASD), and I also use it for storage, installers, etc. When I plug it in to a booted system, it has to mount every single volume (about 25) which can take...
1,010
Posted By nextyoyoma
Sorry, updated my post as you were asking. OS X...
Sorry, updated my post as you were asking. OS X 10.7.4
1,010
Posted By nextyoyoma
Launchd-owned processes unexpected behavior
Ok, so I have been struggling with this for a few days and I think I need an explanation of a few things before I go any further. I'm not sure it's possible to do what I'm trying, so before I pull...
2,992
Posted By nextyoyoma
Actually that's a typo. Sorry. It doesn't work...
Actually that's a typo. Sorry. It doesn't work with strong quotes either.

---------- Post updated at 02:27 PM ---------- Previous update was at 01:18 PM ----------

Ok, it looks like it just...
2,992
Posted By nextyoyoma
Osascript quoting issue
I am at a loss on this one. I am trying to run this command on a bunch of (OS 10.7.4) macs:osascript -e "tell application \"System Events\" to return name of every process whose frontmost is true"...
1,317
Posted By nextyoyoma
tail log on remote iPad
I have a jailbroken ipad acting as a window sign. It is running an app I wrote that plays a video over and over. Sometimes it stops working, so I set up a log to the device that I can read. I...
1,195
Posted By nextyoyoma
Can you show a sample of a record in the input...
Can you show a sample of a record in the input file?

something like this:
#!/bin/sh
awk 'NR<1001{print}' inputfile>> output1
awk 'NR<2001{print}' inputfile>> output2
awk 'NR<3001{print}'...
1,580
Posted By nextyoyoma
You need to quote "$SearchString1" to prevent...
You need to quote "$SearchString1" to prevent word splitting when the variable is expanded. Think of it this way: if you typed in "grep Sep 29" it would think you were trying to look for the string...
1,030
Posted By nextyoyoma
Yeah, I realized that about the "grep -v" as soon...
Yeah, I realized that about the "grep -v" as soon as I posted. It would also not match even if I just had [j] since, awk is looking for the regex as opposed to a literal [j].

I see what you mean...
1,030
Posted By nextyoyoma
Yeah, I should. But I am deploying this to 800+...
Yeah, I should. But I am deploying this to 800+ machines, through a launch daemon we already have running. I don't want to add an external piece into the puzzle.

Next time we do imaging I plan to...
1,030
Posted By nextyoyoma
Array from awk
I'm trying to get the output from awk into a bash array. Here is my script.

#!/bin/bash
while :
do
app=$( osascript -e "tell application \"System Events\" to return name of every process...
1,246
Posted By nextyoyoma
I guess we could do that, but it would still take...
I guess we could do that, but it would still take up a full icon space in the dock and have a light under it.
1,246
Posted By nextyoyoma
launchctl loads app with icon (OS X)
We are deploying an app to our students that is running as a daemon. It keeps them from using certain software. The problem is that when we initially deploy it we don't want to require a restart. ...
1,844
Posted By nextyoyoma
TR not removing carriage returns
I have a CSV with carriage returns in place of newlines. I am trying to use tr to remove them, but it isn't working.

Academic year,Term,Course name,Period,Last name,Nickname
2012-2013,First...
1,537
Posted By nextyoyoma
Ah, that makes sense. This file was output in...
Ah, that makes sense. This file was output in excel format by a Windows app called Blackbaud and then exported to CSV from excel. I'll try it. Thanks!
1,537
Posted By nextyoyoma
awk: printing newline with last column
I was trying to simplify this from what I'm actually doing, but I started getting even more confused so I gave up. Here is the content of my input file:

Academic year,Term,Course name,Period,Last...
1,062
Posted By nextyoyoma
How is the list of files formatted? How are the...
How is the list of files formatted? How are the values delimited?
530
Posted By nextyoyoma
Packaging database with script
So this is kind of an odd question. Our school uses a very complicated management suite for student schedules. I wanted a way to look up a students schedule from a CSV without having to load it up...
2,216
Posted By nextyoyoma
So that was not the problem. I think the issue I...
So that was not the problem. I think the issue I that hdiutil is not reporting the exact number I am looking for.

Furthermore, I don't know enough to know if the uncompressed size of a dmg is...
2,216
Posted By nextyoyoma
My apologies, I was at work and trying to get...
My apologies, I was at work and trying to get this done in between things. Thanks for trying to help anyway!

I ended up just converting to GB and rounding up to the nearest whole number. Not...
2,216
Posted By nextyoyoma
For an image whose compressed size is 3.05 gb ...
For an image whose compressed size is 3.05 gb

/array>
<key>Size Information</key>
<dict>
<key>CUDIFEncoding-bytes-in-use</key>
<integer>3045130752</integer>...
2,216
Posted By nextyoyoma
Unfortunately I don't think that hdiutil reports...
Unfortunately I don't think that hdiutil reports a block count for disk images. Do you know of another way to get this information? I could find it for the compressed image file, but not for the...
2,216
Posted By nextyoyoma
This first part of the script is supposed to get...
This first part of the script is supposed to get the total size of the disk image when mounted:

os=0
for i in ${DMGLIST[@]} #This array contains a list of .dmg files
do
...
2,216
Posted By nextyoyoma
os x hdiutil expert needed
I am writing a script that using the "Total Bytes" field from hdiutil imageinfo -plist <file>. My intention is to get the total mounted size of a compressed dmg. It works for some images, but...
1,484
Posted By nextyoyoma
Perfect. I had to change the 1 to i, but...
Perfect. I had to change the 1 to i, but everything else works exactly. Now to look up how this works for future reference. Thanks!
Showing results 1 to 25 of 35

 

Featured Tech Videos

All times are GMT -4. The time now is 01:21 PM.
Unix & Linux Forums Content Copyright 1993-2019. All Rights Reserved.
Privacy Policy