(Elementary user)
My goal is to find and move directories with a certain date, and move them 'intact' to a new location.
My script below is working but it's putting the contents of the directories it finds 'loosely' in the target folder.
e.g. the script finds the directories 'ABC' and 'XYZ'...
Hello,
I think I can (almost) answer my own question!
I have modified my script as below however its is placing the contents of all the directories it finds into a folder with yesterday's date; is there a way of moving the found directories intact to a folder with yesterday's date...
(Elementary user)
Thank you for your help; yes I'm using Linux 5.
Your suggestion sounds ideal but I'm at a loss as to how to integrate it into my script; could you please help?
find . -maxdepth 1 -mtime 1 -name '*' -exec mv {} /raid/legacy_data/date --date yesterday/ \;
(Elementary user)
Good day,
I would like to make directories available for download for 24hours and then move them to another location, inside a subfolder folder with 'yesterday's' date. I would like to use a script and the crontab:
For example - here is the path to my download area...
Could either of you please help me get the previous pull down values in to the following:
<input type="text" name="email_sender" size="60" value="<?php echo $value_email_sender;?>"></input>
Thank you both very much; I found the correct location:
<td><b><span style="<?php if($value_email_sender=="") echo $style_error;?>">E-Mail-Adresse des Absenders:</span></b></td>
<td></td>
<td><select><option value="smith@somedomain.com">Miss Smith</option><option...
(Elementary user)
Good day,
Below is an excerpt from a PHP file that is displayed in an HTML page:
$form_sent = false;
$value_email_customer = "";
$value_email_sender = "";
Our goal is to have a pull down list for value_email_sender eg.:
Mr Brown
Mrs Jones
Miss Smith
Can anyone please help...
Thank's for your help; I presume this means if the power supply is yanked during operation or because of a power failure. I've enabled this setting.
I am still curious if there's a method of turning on the supply and getting a reboot.
Best regards
Does anyone know if it is possible to (re)boot a Mini Mac on restored AC input?
ie. as soon as a mains supply is connected the computer should boot without having to depress the button on the rear.
Best regards
(Elementary user)
We can successfully access our company's network from Macs and PCs by means of a VPN.
We basically have phase 1 & 2 setting whereby we enter the firewall IP and LAN IP along with a pre-shared secret.
Our goal is to try and join the VPN using an iPhone in order to send...
(Elementary user)
When configuring an APC Smart UPS network card, there is an option called 'Low Battery Duration' where a time in minutes can be set between 2 and 20.
This is the time limit from the low battery signal until shutdown.
Have I understood correctly, that the lower one sets this...
(Elementary user)
We have a 2003 server that boots quicker than another server that is publishing shares.
The shares are 'mapped' to a letter on the 2003 server but on cold starting both machines, the shares are simply not ready to be mounted.
e.g. My_Server (G:)
Is it possible to make a...
(Elementary user)
I am involved in a project where a regular expression must check the email input of a user.
The user can be 'anyone' as long as the characters after '@' match either 'abcd.br or 'abcd-rio.br'.
For example: jon@abcd.br or jane@abcd-rio.br
Can anyone help me with my below...
(Elementary user)
We have 3 servers conected to our UPS and all have their BIOS setting to boot on AC in.
Due to network mounts, we would like to delay the booting of two of the servers so that the main server has time to prepare it's shares.
Is there a way of delaying Windows startup after...
Good day,
I am looking for the BIOS option of AC recovery on a Power Edge 2600.
Basically, in the event of a power failure, the UPS should power the computer down (PowerChute) then power it up again once the supply has been reinstated; generally there is an option of ON, OFF and LAST...
(Elementary user)
We have a server with two 980 Watt power supplies. Our voltage is 240V. The idea is that should one of the power supplies fail, the server will continue to function seemlessly.
Am I correct in thinking that:
a) Both power supplies should be plugged in to the UPS?
b) I must...
Thanks everyone for all your responses and help.
One idea that came from RH directly was to use 'rbash' as foo's shell.
This indeed locked them in their home directory however, it won't let them execute a specific binary as slashes are not allowed in the command name:
./foos_binary
Placing...
(Elementary user)
The user 'foo' has a home directory of /opt/foo and a shell to /bin/bash
Once foo logs in however, they can cd to '/'.
Is there a way to jail the user so that they might only access their home directory thus preventing them to navigate elsewhere?
Best regards
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.