LakerInWilkes
|
Posted 8:29 pm, 10/07/2008
|
What Linux distro are you using? I would recommend using Ubuntu if this is your first try with Linux. It was the first Linux I tried & I still think it is the best! Any way, for Ubuntu follow the instructions here: http://ubuntuforums.org/sho... For other distros, check out the user forums on their website. I'm sure that this question has been answered on all of them. If you let us know the distro, we'll see if we can point you straight to it! BTW - Don't get frustrated! Linux is different in almost every way, but once you get used to it, everything will just "make sense" like Windows seems to now. For the most part, the Linux community is always willing to answer questions.
|
babygirl09
|
Posted 1:54 pm, 10/07/2008
|
Ok i have linux i have tried to install flashplayer but something isnt right i cant open it at all can some one please help me i cant get yahoo messenger either so i need help bad i am going to go back to windows if no one can help me
|
pnthrfn1
|
Posted 8:49 pm, 09/20/2008
|
Finally got to put this to use today. However, it didn't work on AIX like it did in Linux. I ended up using this script:
#! /bin/ksh
cd /where/the/files/are
find . -mtime -7 -name '*.csv' | cpio -p /where/to/copy/files/
echo Done
|
pk
|
Posted 9:26 pm, 09/19/2008
|
You want the chance to beat on CICS? Lowe's is always looking for CICS people. Most of em are dead now.
|
BlueRidgeGuy
|
Posted 11:34 pm, 09/18/2008
|
Big Iron Roolz!!!!
Ah, for the chance to write one more line of Command Level CICS.
And punch cards.
|
LakerInWilkes
|
Posted 8:21 pm, 09/18/2008
|
Interesting - I'll have to remember that one...
Every time I see something like that it makes me glad I work with mainframes for a living! Kinda makes assembly language look eloquent!
|
pnthrfn1
|
Posted 1:14 am, 09/18/2008
|
I think I finally got it with a little help from the web. This one goes in my toolbox:
find . -mtime -7 -name '*.csv' \( \! -name '*~' -print0 \) | cpio -pmd0 ./sept
Copies all of the .csv files in the current directory modified in the last 7 days to a sub-directory sept.
|
GoWilkes
|
Posted 2:38 am, 09/17/2008
|
One last try:
find . -mtime + 7 "*.csv" -type f -exec cp -R {} [target directory]
"-type f" tells it to stick to plain text files and ignore directories ("-type d" would find directories, and leaving it off would find both). It may not be necessary for this application, but that's up to you.
"-R" means to keep going until all of the matching files have been copied, and {} is just a placeholder for the unknown file names.
You might have to put a \ at the end of this command, too. I don't think that I've ever actually done this, but I think that anytime you use -exec, you have to end it with \.
Since this is a learning exercise...
Multiple options are set to "and" by default, so the above line reads:
find where last modified time + 7 days of *.csv, and type is test, and then execute copy all files to the target directory
If you wanted to change it to "or" instead of "and", you would -o. So, for example, if you wanted to find files that are modified in the last 7 days OR that the size is more than 50kb (100 blocks), you would say:
find . -mtime +7 "*.csv" -o -size +100 -type f -exec cp -R {} [target directory]
|
GoWilkes
|
Posted 1:44 am, 09/17/2008
|
Good point, I was just finding files that matched the current timestamp. Maybe it would be more like:
find . -mtime + 7 "*.csv" -exec cp -R {} [target directory]
With this, you would just skip the touch altogether.
|
BlueRidgeGuy
|
Posted 12:45 am, 09/17/2008
|
God help me for chiming in on a *nix thread.
touch -t 200809160000 testfile.csv
You'll have to find some "method" to determine when a file is "x" days old (untouched). I can't remember, is that functionality built in or will you have to "do a little math" using the timestamp?
|
GoWilkes
|
Posted 12:27 am, 09/17/2008
|
I haven't tested this, so consider it a guide rather than a copy and paste.
# Go to source directory cd /directory/
# Find files with lastmodified greater than YYYYMMDDhhmm # Sets baseline for "find" touch -t 200809160000 testfile.csv
# Print filenames to the screen find . -newer testfile.csv -print
# Copy them to [target directory]
find . -newer testfile.csv -exec cp -R {} [target directory]
Something doesn't feel right about that last line, but it should get you close enough to figure it out, anyway.
|
pnthrfn1
|
Posted 11:54 pm, 09/16/2008
|
I know there is at least one Unix person on here, they have replied before. Here is a challenge that I'm still working on myself. I want to create a script to find all *.csv files created in the last 7 days and in a specific directory and copy them to another directory. I'll then create a cron job to use them as input for a report, but I can't figure out how to get them where they need to be when they need to be there.
|
pnthrfn1
|
Posted 8:11 pm, 09/11/2008
|
You can pick up the latest version of Suse or Fedora in the magazine section of Barnes & Noble. There are several Linux magazines with a disk on the inside, plus installation instructions. Also, there are several websites where you can download an image for free and burn it to a DVD/CDROM.
It is much easier these days to install and use Linux. Most hardware is supported out of the box. You can do practically anything in Linux that you can in Windows. The best part is that the software is free. Another advantage is that Linux is not as likely to be infected by a virus or spyware. There are not many out there coding virus and spyware for Linux.
I got into it to learn Unix, now Unix System Administration is what I do. It's challenging, ever changing and a lot of fun.
|
unc417
|
Posted 10:35 am, 09/11/2008
|
How did you get into linux? I know nothing about it but have been thinking about learning it.
|
LakerInWilkes
|
Posted 6:25 pm, 09/01/2008
|
I'm not a Fedora guy myself, but I think I've had this problem on other distros... It seems like I had to remove the Swfdec-Mozilla plug-in before Firefox would use the flash plug-in. Hope that helps. Otherwise, I'm at a loss. Good luck!
|
pnthrfn1
|
Posted 12:52 am, 09/01/2008
|
Upgraded to Fedora 9 and can't get YouTube videos to play. I've installed flashplayer and tried different browsers, firefox, seamonkey and opera. If anyone is up on Fedora 9 with YouTube working, how did you do it?
|
|
|