Programming :: Script To Create Some Directories To Organize Photos ?
Sep 15, 2010I am trying to write a simple script to create some directories to organize photos.
Next I want to cd to the newly created dir DATE_BANDNAME, how can I do that?
I am trying to write a simple script to create some directories to organize photos.
Next I want to cd to the newly created dir DATE_BANDNAME, how can I do that?
i wanted to sort and organize my pictures by resolution ( like 1024*768 ) but i failed. is there any program or search plugin for nautilus to sort or list my photos by resulotion?
View 3 Replies View RelatedI don't like this feature. I like to organize my photos by directory. Not time. Can I do this in shotwell? Or should I use a different program?
View 1 Replies View RelatedI've found myself in the situation where I need to create a menu in gnome/kde for a directory structure full of documents.The directory structure looks like this:
Code:
DOCS/
.. REFERENCES/
[code]...
i am in need of linux help. iam at college and i need this back/restore script to pass this final part of an assessment. i require a backup script that will not only backup but also restore files to the relevent directories. e.g. users are instructed to store all wordprocessor files in a directory named wp. so i am needing to create a backup directory and 3 directories within that and some files within the 3 directories and then back them up ot restore them. l know i should/have to do this myself by been trying to get/understand info for the last few days and came up with zero.
View 14 Replies View RelatedI want to make a webserver with multiple users allowed to login through SFTP to a specific folder, www.Multiple users are added, lets say user1 and user2, and all of them belonging to the www-data group. The www directory has an owner www-data and a group www-data.
I have used chmod -R 775 on the www folder, but after I try to create a folder test through my SFTP server (using Filezilla) the group of the directory created has only r and x permissions, and I am not able to log in with the second user user2 and create a directory within www/test due to a lack of w permission to the group.
I also tried using chmod 2775 on www directory, but without luck. Can somebody explain to me, how can I make it so that a newly created directory inherits the root directory group permissions?
I am trying to organize a log file by user id and source IP. The data I have is in the form of the following:
Code:
user1,127.0.0.1
user2,127.0.0.2
[code]....
I have bought a pdf dictionary, but I would like to convert it to stardict for my ereader.
I have converted the pdf into txt but is quite a bad result. So I need to reorganize a bit the txt.
I'm not a programmer, so I should need you write me a small script (python, sed, bash...) that if at the end of the line there is not a point then the line have to be joined with the following line. Sometimes happens that there is a point even in the middle of the line: in this case the line have to be splitted.
Once last thing: after the first word it's needed a TAB. I have appended a preview of the txt file.
Is it possible to organize bash script output of which is like on top command i.e. monitoring every let's say 1 sec and old information would cleared?
View 3 Replies View RelatedI would like to get f-spot to create e-mails with reduced versions of photos and find that it almost works:
- f-spot opens up thunderbird
- a reduced resolution of the photo is created in /tmp
but it fails to attach to the e-mail. I have googled this and have checked settings in with gconf-editor and made sure that thunderbird is the default e-mail and that delete_timeout_seconds is set high but this does not seems to .
Does anyone out there have any other idea what might be causing the problem? Once I get this working then it will be an extremely comfortable way to send correctly-sized photos.
I can log in as root and create directories fine etc But when I ftp or when I try to use the file manager on plesk, I get a permission error when I try to create a directory anyone any ideas why it does this ? Also i have a wordpress blog and when I try to add a new theme the theme wont add, because it is unable to create the folder to put the new theme into so this seems to be teh same issue, ive tryed altering the folder permissions but this doesnt many any difference. is there a way to let my ftp and wordpress be able to create directories ?
View 19 Replies View Relatedhave been working how to do this for a while finally getting around to asking....
as a long time windows user I have used a trick of creating directories that will always be the first ones displayed by using an _foldername model, for ex:
_temp
A dir
B dir
temp
assuming the four above are directories that is how they are sorted by default in windows and I commonly use this technique for special folders.
for my virtual machines folder in windows looks like this:
_base
LX-Ubuntu9.1
LX-Ubuntu11.4
XP-TestVM
...
where I put base virtual machines in _base and it makes it easy to separate them for all the other folders which are virual machines....SO....
in Ubuntu, I cant figure out a character or way to ensure this type of behavior, for example if I create a _base folder it shows up after a dirs and around the bs etc...
any know a way to create a dir with a special char that will ensure it stays on top?
I'm studying for the RHCSA certification (Tautology?) and I'm struggling a bit with this objective Quote:Create and configure set-GID directories for collaborationI've followed the instructions on the deployment guide (except that I created a different directory):
http://docs.redhat.com/docs/en-US/Re...ers_and_GroupsYet, whenever I create a file in this new directory (logged in as a member of the owning group), permissions are set to 644, so other group members cannot edit the files.I checked the umask value and it's set to 0022 and the permissions on the directory are set to 2775
quickest way to create directories from a .txt or .csv file. A single command would be great but I can use a script as well.
The windows equivalent would be:
FOR /F %n IN (newfolders.txt) DO MKDIR %n
I need to create this link between the two directories shown below.... So I assume everything that is put into the outgoing directory is copied to
# pwd
/home/e-smith/files/users/admin/home
ls -l
lrwxrwxrwx 1 root root 29 Jun 25 2008 outgoing -> /var/spool/asterisk/outgoing/
Why when I command "useradd -m barth" do I get the error message: "cannot create directory /home/barth"? It only does this when a partition is mounted to /home.
View 14 Replies View RelatedI am trying to write a script to pick the directory name from a list of file. Here is a detailed picture.Have a file name LIST which contains the follwing for example/apps/oracle/product/test1/apps/oracle/product/test2/apps/oracle/product/test3I need a script that reads these line from LIST and creates foldersin /apps/oracle/product/test1/backup/date/test1 after reading the first line
/backup/date/test2 after readin the second line/backup/date/test3 and so on.
1. This script will create directories for a specific datatype. Example rickk, rik, rikky etc.2. This script will aslo create subdirectories labeled by the duration of an event.For example if an event where to take place for 5 days, May 5 - 10th. Folders will be labled:20100505, 20100506, 20100507, etc will be included in each datatype.Since this exercise will take 6 days there will be 6 subdirectories under each datatype.3. This script will also create cgi scripts for each of the dataype and day of the the exercise.For example dataype "rik" for May 09 will read rik5.cgi, since May 09 is the 5th day of the exercise.This is how it looks so far, it works great but I realized that if and when I plan to add more datatypes that its going to involve alot of repetivie typing. I figure to simplify this whole thing would be best to use loops. Can someone direct me to some good information concerning loops and sample of loops? I have a feeling that what I need to do is going to involve a nest of loops.
#!/bin/ksh
root_dir=/opt/global/webservices/apache/app/test/dynamic/
cd $root_dir
[code]....
I want to create a separate partition for /home.inuxMint is *already* installed.PartedMagic be used for the same, NOW
View 14 Replies View RelatedI am trying to apply a patch to my linux kernel. I have FC8 with kernel 2.6. I found the following instructions on how to build a custom kernel (which I am following)My problem is that when I run rpmdev-setuptree,t doesn't create any directories, like it should according to the instructions. I am logged as a normal user (not root)in my home directory. I have no idea what's going on
View 3 Replies View RelatedHere is the issue:I create saome variables to make shortcut to some directories I go frequently (so, I then I type, e.g. cd $P_DIR). Of Course before that I put a valid value into P_DIR variabe.Also, alias, asalias cls=clearSo, I type cls, and is the same as the commando clear (but shorter)What I want to do is that those variables as aliases stay in the computer when I reboot or turn off and turn on.So, I put "somewhere" (this is the place(s) maybe one for variables, and other for aliases, turn of the computer, and when I turn on, the aliases and variables are still there
View 9 Replies View RelatedI'm running OpenSuse 11.0 in a lamp configuration with Apache 2. I configured Apache with the .conf files instead of YAST because I am running virtual hosts (that's another story).
My problem is that my server will not render the pages unless the permissions are set to 775 which I know is not necessary. This is also causing a problem because I am trying to install WordPress onto the server. WordPress will run, but it unable to upload images because it cannot create the directories required.
Apache2 is running as 755 with root as owner and www as group. I changed the owner of the htdocs sub-directories to myself, and created a group that has permissions to write to the directory. WordPress runs as my user and has the same permissions (775).
I'm mounting a shared folder in an arch linux guest on a windows 7 host in Virtual Box. The shared folder's filesystem is ext3 and is mounted in windows 7 with Ext2Fsd. I mount the shared folder at boot with this fstab:
D_DRIVE /home/tony vboxsf rw,gid=1000,uid=1000,auto 0 0
I believe my user in the guest OS has the right uid and gid:
[tony@kiwi ~]$ id uid=1000(tony) gid=1000(tony) groups=1000(tony),1002,(vboxsf)
I can create files and remove them fine, but I can't seem to create directories.
[tony@kiwi ~]$ mkdir foo mkdir: cannot create directory `foo': Protocol error
Its weird because the directory looks like its there, sort of.
[Code]...
At work, using SambaKerberos and ActiveDirectoryWinbindHowto, I joined my machine to our ADS network. Again using ActiveDirectoryWinbindHowto, I modified both common-account and common-auth with these settings.
file: /etc/pam.d/common-account
account sufficient pam_winbind.so
account required pam_unix.so
file: /etc/pam.d/common-auth
[Code]....
According the the doc, when I first log in as a domain user, it should create the home directiroy /home/<whateverdomain>/<theusername>, but it doesn't.
I've had a recent idea to have PHP take information from a form, save it to a file, which in turn is read from a local script as root (cron) which will create the user account, proper directories, add the website to the Apache sites, and reload Apache. anyone actually accomplished this before? And if so, can I get some links or some ideas to possibly help me on the process of getting started?
View 1 Replies View Relatedi've been wondering how do i know if some users create/modify/delete file/directory in linux, i've been using pyinotify in python script.this script like the example from the manual:
Code:
#!/usr/bin/python
import pyinotify, os, time
[code]...
I noticed in Fedora that in Authenticate Configs ->Advanced, that there is an option to "Create home directories on the first login".I'd like to know if its possible to enable that through a text config file on a CentOS box that has ldap authentication enabled. Right now it's complaining that the home folder does not exist upon loggin with an ldap account.
View 1 Replies View RelatedI can do:mkdir messages and then: touch messages/hello.txt Is there a command that will do both - create the directory if it doesn't exist, and then the empty file? Something like: touch -p messages/hello.txt
View 1 Replies View RelatedI have an internal hard drive and an external hard drive, both with about 350 GB of data. The data came from the same source, but over the last couple of years, different people have moved files around to different directories, and some files have been deleted. Now I want to merge all the files onto the internal hard drive. I estimate that 80% of the files on the external hard drive are the same, so I don't want to copy 290+ GB of data over when I already have it.
Therefore, I need a way to find just the files on the external hard drive that don't already exist on the internal one. In other words, I need to create two lists of file names irrespective of directories and compare them, selecting only the file names that exist in one list OR the other. I've Googled for solutions but can't find anything suitable. There are ways to create text files of the file names and compare them with diff, but they have to be in the same order, and since these files are in vastly different directories, that won't work.
I'd like to create a tar file on my machine to distribute software to other machines which are all alike (including, usernames, groupnames, etc). I need to create certain files and directories with specific owners on the target machine. In order to do that, I use
Code:
tar --create --owner=someone --group=somegroup --file package.tar files. However, for this to work, someone must be in my /etc/passwd and somegroup must be in my /etc/group. Is there a way to fake this so I don't have to create a bunch of users only for that purpose?