Search Results

Search: Posts Made By: shehzad_m
1,577
Posted By shehzad_m
/bin/cat /path/to/ftp_folder/* this is cating...
/bin/cat /path/to/ftp_folder/* this is cating every single file


i wanna cat the files for that specific hour.
1,577
Posted By shehzad_m
this creates a new file everytime script runs i...
this creates a new file everytime script runs i want to keep one file for each our

so file names are

07-18-11-13:18:50

07-18-11-13:23:04

so both files need to be written into the same...
1,577
Posted By shehzad_m
cat question
Can any one guide me how can i accomplish this by script

i continuously receive files via our ftp server into a certain folder is there a way i can take those files cat it to a new file by hour...
754
Posted By shehzad_m
scripting help
I save log files and name them as timestamp as the same time they are created

05-05-11-12:33:25 <========would be one of the file name

i would like to redirect hour worth of file into a...
2,136
Posted By shehzad_m
redirecting a url on apache conf file
i need help on redirecting apache conf file

i want redirect everything to www.example.com/home

example if i type a url

www.example.com/home/text1

i need that redirected to...
2,587
Posted By shehzad_m
i want to check for the output of grep -c ...
i want to check for the output of grep -c

so when i run

tail -20 /usr2/logs/ftp.log | grep -c disconnecting

it gives me a count in the output, so if the count is equal to 0 then i want to...
2,587
Posted By shehzad_m
this is how it was working before if `egrep...
this is how it was working before

if `egrep -s "/usr2/bin/ftpd" /var/tmp/check.tmp`
then
echo " FTPD is Running..."

now i want to add a OR statement with it

tail -20...
2,587
Posted By shehzad_m
if statement
i am trying to write a if and OR statement but its not working, can someone help me out

if `egrep -s "/usr2/local/ftpd" || tail -20 /usr2/logs/ftp.log | grep -c disconnecting = 0
then
.
.
13,337
Posted By shehzad_m
example Mar 1 08:54:17 houston1 Synergy...
example

Mar 1 08:54:17 houston1 Synergy 1.3.1: WARNING: synergyc.cpp,265: failed to connect to server: No route to host
Mar 1 08:55:20 houston1 Synergy 1.3.1: WARNING: synergyc.cpp,265: failed...
13,337
Posted By shehzad_m
grep for last 15 min of log
I need help trying to grep for a error in log file for only last 15 min.

example

under /var/adm/messages i need to grep for "error 102" but only if it occured in last 15 mins?


Thanks
3,562
Posted By shehzad_m
Thankyou!!!!
Thankyou!!!!
3,562
Posted By shehzad_m
with both commands i am getting data from above...
with both commands i am getting data from above and below rows aswell..is there a way i can just get those numbers after barcode?

---------- Post updated at 03:58 PM ---------- Previous update was...
3,562
Posted By shehzad_m
Extract a string from file
Below are the content of my file and i need to extract the 6 digit numbers after the word barcode, how can i do this?

for example i need to extract 004119,004275,004030 to a new file.

...
Forum: SuSE 07-29-2009
4,593
Posted By shehzad_m
Cannot get the cisco anyconnect to work with SUSE
I am getting the following error when i try to connect to the vpn

Warning: The following Certificate received from the Server could not be verified:
2,530
Posted By shehzad_m
I tried this it didnt work, this site does not...
I tried this it didnt work, this site does not require password..it only prompt your email address and then takes you to the download page.
2,530
Posted By shehzad_m
fetching multiple pdf files from website
I need some help in getting all pdf files from a website after logging into a session. Website requires me to enter my email address then it logs me into a session where it gives me link to download...
Forum: Linux 06-08-2009
7,957
Posted By shehzad_m
vsftpd on multiple ports
I have a ftp server on ssl talking on port 21, i would like to allow another port to acess the same server. I am not sure if its possible or not and if its how can i do that?
26,371
Posted By shehzad_m
What about if i am looking for a specific file...
What about if i am looking for a specific file type?

example the file names i am looking for have log1 and log2 in them.

would this be the best way of doing this?

find / -iname *log1*...
26,371
Posted By shehzad_m
Yea .
Yea .
26,371
Posted By shehzad_m
Removing 2 month old files
I am trying to delete 2 month old file with date extension yyyymmdd, How can i get a 2 month old month and year?
9,514
Posted By shehzad_m
Thanks that works.
Thanks that works.
9,514
Posted By shehzad_m
yea but i am trying to list and copy in the same...
yea but i am trying to list and copy in the same try. I tried piping a cp command with ls ltr but it didnt work.
9,514
Posted By shehzad_m
how to use find command to get latest file
Is there a way to use find command to get the latest file and cp it into a certain dir at the same try.

example find the latest file and cp to a diff dir.
3,099
Posted By shehzad_m
Can you tell me how can i put this in expect...
Can you tell me how can i put this in expect script?
3,099
Posted By shehzad_m
how to get the latest file
I am trying to scp the latest file which ends with "_abc.log". Can some help me figure out how can do that?
Showing results 1 to 25 of 41

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