Search Results

Search: Posts Made By: alternapop
12,736
Posted By alternapop
find locked files, print file path, unlock file
using OS X and the Terminal, I'd like to find all locked files in a specified directory, unlock them, and print a list of those files that were unlocked

how can I do this?

I'm familiar with...
16,207
Posted By alternapop
great, thanks!!!
great, thanks!!!
16,207
Posted By alternapop
--- find . -ls | awk '{print $3,$5,$6,$11}' |...
---
find . -ls | awk '{print $3,$5,$6,$11}' | grep "^d" | awk '{print $2,$3,$4}'
---

awesome, thanks for the quick response! that's pretty darn close to what i was wanting...

it seems to not...
16,207
Posted By alternapop
recursive directory listing with ownership
i'm playing around with "ls" and "find" and am trying to get a print out of directories, with full path, (recursive) and their ownership.... without files or package contents (Mac .pkg or .mpkg...
43,883
Posted By alternapop
while [ ! -s *.xml ] do printf "." ...
while [ ! -s *.xml ]
do
printf "."
done
echo "found it "


that seemed to have worked... i used the above.
thanks!
43,883
Posted By alternapop
check/wait for files to exist before continuing
I'm attempting to write a pretty simple script. It opens a Filemaker file successfully. That Filemaker file takes around 30-90 seconds to finish. When it's done, it writes a few .xml files into the...
16,168
Posted By alternapop
thanks zaxxon! that worked.
thanks zaxxon! that worked.
16,168
Posted By alternapop
using wget with date variables
I have a url that I need to get using wget. This url string needs to contain two values referring to today's date and a date 3 months from now. I have it mostly finished, I think, but am having...
9,022
Posted By alternapop
thanks guys. i got it working.
thanks guys. i got it working.
9,022
Posted By alternapop
var returns nothing... exactly this: var...
var returns nothing... exactly this:


var =


if i set var = "test" then it returns "test" but it doesn't return the function if set to that. this seems so trivial but i appreciate your help!
9,022
Posted By alternapop
using apple OS X... the uptime line works by...
using apple OS X... the uptime line works by itself in the terminal. when i add it to the if-then script and call the script from the terminal it doesn't work. i'm guessing it has something to do...
9,022
Posted By alternapop
sorry but it doesn't work as expected. cut...
sorry but it doesn't work as expected. cut returns "days"

removing the middle part to return the value i'm looking for still doesn't work either:

if test `uptime | cut -d "," -f 1 | cut -d "...
9,022
Posted By alternapop
script to autorestart if uptime greater than... help needed.
i'm trying to write a script that will check my os x box for uptime and autorestart gracefully if the uptime is greater than a certain number of days.

thus far i have this:

if uptime | cut -d...
Showing results 1 to 13 of 13

 
All times are GMT -4. The time now is 07:13 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy