Search Results

Search: Posts Made By: amitsayshii
16,472
Posted By amitsayshii
Script to move certain number of files every 10 minutes.
Hi,

I need to move a certain number of files every 10 minutes from one folder to another. I have written the script below, however its not working, please advise.

#! /bin/ksh
start()
{

...
19,759
Posted By amitsayshii
Hi, The ip variable is not getting the...
Hi,

The ip variable is not getting the values. $I has the values
ip=`rsh ont "ps -ef | awk '{print $9}' | grep -x $I"`
is there any prob with the quotes ?

Thanks,
Amit
19,759
Posted By amitsayshii
trying a different approach...but still some...
trying a different approach...but still some errors in it....any help will be highly appreciated....

#!/bin/ksh
for I in `echo "select Address from Dev where Cust = '3-136VFF' and State = -2" |...
19,759
Posted By amitsayshii
Thanks for you advise....I will be implementing...
Thanks for you advise....I will be implementing that in the final script.....I am still testing it...
19,759
Posted By amitsayshii
Script to check running processes on remote server.
Hi,

I am trying to write a script, which queries a db to get the names of processes, stores it in a file and then checks if that process is running on a remote server. However I am not getting it...
3,654
Posted By amitsayshii
Apache Error
Hi,

I am getting the error given below in the apache error_log.

Error: tcgetattr: Invalid argument
ioctl I_PUSH ttcompat: No such device or address
sh: /xyz: not found

the file xyz is...
19,488
Posted By amitsayshii
Select entries between two dates by converting Unix timestamp in Oracle Database.
Hi,

I need to select the entries between two dates from an Oracle db. The Oracle db has a column with Unix timestamps. I use the following querry, but it doesnt seem to be working as desired.
...
6,906
Posted By amitsayshii
Need to add aditional space on an exsisting Linux Partition..
Hi,

I need to add more space to an exsisting /u partition by adding an additional physical drive, so that the additional space is added in continuation to the exsisting /u diskspace. Is it...
7,646
Posted By amitsayshii
Thanks a lot it workd.....the final script is.......
Thanks a lot it workd.....the final script is....

#!/bin/ksh -x
limit=50
file_length=`rsh invuk 'ssh poller ls -ltr /fred/nmc/Data/get/ | wc -l'`
if [ $file_length -ge $limit ]; then
echo...
7,646
Posted By amitsayshii
It says..../trapchk.sh[3]: 11: not found ...
It says..../trapchk.sh[3]: 11: not found

file_length= `rsh invuk "ssh poller "ls -ltr /var/spool/get | wc -l""`

is this correct...Thanks
7,646
Posted By amitsayshii
The issue seems to be with the value not getting...
The issue seems to be with the value not getting populated in the file_length variable. The command gets run on the shell without the return value getting populated in the variable. How do I fix...
7,646
Posted By amitsayshii
If I do echo $file_length I get the value.Correct...
If I do echo $file_length I get the value.Correct me if I am not getting it...thanks
7,646
Posted By amitsayshii
Yes it runs fine also the no of files returned is...
Yes it runs fine also the no of files returned is correct. Its just that the condition is not getting checked. Thanks
7,646
Posted By amitsayshii
Counting Files and send an email Notification if it exceeds a limit
Hi,
I am trying to write a script to Count Files in a directory located on a remote server and send an email Notification if it exceeds a limit. The code given below doesnot check the condition and...
4,839
Posted By amitsayshii
Thanks a lot it helped... :)
Thanks a lot it helped... :)
3,947
Posted By amitsayshii
script to kill rsh processes running for more than 10 minutes
Hi Friends,

I need to write a script to kill some processes running for more than 10 minutes. Can I get some pointers on that. Thanks for ur help in Advance.

Thanks&Regards,
Amit
4,473
Posted By amitsayshii
script to kill rsh processes running for more than 10 minutes
Hi Friends,

I need to write a script to kill some processes running for more than 10 minutes. Can I get some pointers on that. Thanks for ur help in Advance.

Thanks&Regards,
Amit
4,839
Posted By amitsayshii
Script to kill rsh processes running for more than 10 mins
Hi Friends,

I need to write a script to kill some processes running for more than 10 minutes. Can I get some pointers on that. Thanks for ur help in Advance.

Thanks&Regards,
Amit
Showing results 1 to 18 of 18

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