Search Results

Search: Posts Made By: tom123
3,039
Posted By tom123
I was adding the user via a ldif file. I am...
I was adding the user via a ldif file.
I am using vim and it wont allow me copy and paste the 'í' character in.
3,039
Posted By tom123
Ldap dn chars allowed
Hi

Is it possible to add the following to an ldif entry:
dn=estmmartín

i.e Note the charchter 'í'

Thanks in advance
2,192
Posted By tom123
Thanks funksen. So in a file write: ...
Thanks funksen.

So in a file write:

#!/usr/bin/ksh

[ `date -d tomorrow +%d` -eq '01' ] && cd live/cgi-bin/;perl org_stats_monthly_cron_job.cgi

and save it as myfile.sh?

then in the...
2,192
Posted By tom123
Cron Job
Hi

I want to execute a script on the last day of every month.
I tried using the following line but it failed:

50 23 * * * [ `date -d tomorrow +%d` -eq '01' ] && cd live/cgi-bin/;perl...
15,232
Posted By tom123
Still dosnt work. This is what happens with no...
Still dosnt work.
This is what happens with no zipped files in directory:

root@infocentre> ls
0 archive_backup results.sh test.log
root@infocentre>
root@infocentre>...
15,232
Posted By tom123
Yes the bourne shell #!/bin/sh
Yes the bourne shell
#!/bin/sh
15,232
Posted By tom123
still the same error :-(
still the same error :-(
15,232
Posted By tom123
set -vx # To get the trace # Check if files...
set -vx # To get the trace

# Check if files are zipped
echo "\nAre the files zipped? (y/n)"
read are_zipped

# Get extension and unzip them if they are zipped
if [ "$are_zipped" -eq "y" ] ;...
15,232
Posted By tom123
I didnt leave any space. Here is my code. ...
I didnt leave any space.
Here is my code.

# Get extension and unzip them if they are zipped
if [ "$are_zipped" = y ] ; then
echo "\nWhat is the zip file extension? (tgz, zip, etc...)"
read...
15,232
Posted By tom123
Returns the following error: ./results.sh:...
Returns the following error:

./results.sh: syntax error at line 25: `(' unexpected

Appreciate the help

Line 25 is the if statement line
15,232
Posted By tom123
Yet more problems! I'm trying to check if...
Yet more problems!

I'm trying to check if there are any files in current directory to unzip.
If not, then it should exit.

# Make sure there are files to unzip
if [ ls -l *"$extension" | wc -l...
15,232
Posted By tom123
Works Perfect anbu23 :-) Just need to change...
Works Perfect anbu23 :-)

Just need to change it a little to first unzip the folder and then tar.
I have:

for zipped_folder in *tgz
do
current_tar = 'gunzip $zipped_folder'
tar -xf...
15,232
Posted By tom123
Cool, thanks anbu23. What sort of file should i...
Cool, thanks anbu23.
What sort of file should i put this code in? .sh?
And how should i execute it?
15,232
Posted By tom123
tar & Grep together
Hi,

I've got dozens of tar's with two files in each one,
live_access_log & live_error_log (one tar for each day, backups).
The probelm is i need to match a pattern in all of the...
Showing results 1 to 14 of 14

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