Search Results

Search: Posts Made By: jhilmil
1,551
Posted By jhilmil
UNIX mail utility
Hi,
I work on a Middleware application which is installed on Windows, but its file System is on HP UNIX. I am supposed to change the SMTP host address for my application. But I am not able to find...
5,411
Posted By jhilmil
The problem is I cannot hardcode the timestamp...
The problem is I cannot hardcode the timestamp for the temp file. Since this is a script which will run every 1 hour, I want to pick only those files which were created one hour before the current...
5,411
Posted By jhilmil
Command to find files older than 1 hour
Hi,

Out of a list of files in a directory, I want to find the files which were created/modified more than 1 hour ago. I am using HP -UNIX and it does not support the argument -mmin. Please advise....
38,977
Posted By jhilmil
Hi, I understood the awk command but not the...
Hi,

I understood the awk command but not the sed. Anyways, I tried using both the commands, but they are not renaming the files on remote server, even though the files are fetched.

Please give...
38,977
Posted By jhilmil
I did not understand these commands. Please...
I did not understand these commands. Please advise.
Also, is there any easier way to do this?
38,977
Posted By jhilmil
Renaming multiple files in sftp server in a get files script
Hi,

In sftp script to get files, I have to rename all the files which I am picking. Rename command does not work here. Is there any way to do this?
I am using #!/bin/ksh

For eg: sftp user@host...
2,343
Posted By jhilmil
Conditional statement in SFTP
Hi,

I wanted to know if we can use conditional statements like if--else--fi inside an automated SFTP script session.
3,082
Posted By jhilmil
Removing the white spaces before ! is not...
Removing the white spaces before ! is not working.
Here is an excerpt from my script

cd /path/test/out
files2send=`ls *.xml`
ls -l >> $LOGFILE 2>&1
echo "\n" >>...
3,082
Posted By jhilmil
This is the error after I execute the script ...
This is the error after I execute the script

./scriptname.sh[51]: -s: not found
rm: cannot remove .. or .

This is the error in logfile


Connected to xxx.xxx.xxx.x.
220 dummy FTP server...
3,082
Posted By jhilmil
This code is giving the same error ...
This code is giving the same error

$FTP_CMD -v -n $HOST <<*! >> $LOGFILE 2>&1
user $USER $PASSWORD
cd $DIR
...
3,082
Posted By jhilmil
But the same command works when I try to connect...
But the same command works when I try to connect manually to the FTP server. And I also tried the delete command which is again not working.

I am using #!/bin/ksh

Do we have any other...
3,082
Posted By jhilmil
Deleting local server file from automated FTP script
Hi,

I want to delete a file on the local server, while connected to remote server through FTP.
I am using the below code for this

$FTP_CMD -v -n $HOST <<*! >> $LOGFILE...
11,819
Posted By jhilmil
Hi, The output looks like this: $...
Hi,

The output looks like this:


$ runmqsc QM_ICSPN_C ...
11,819
Posted By jhilmil
MQ depth Periodically
Hi

I am trying to a write a script which gives message queue depth for every 5 mins in a file.
Commands that I use are


runmqsc QM_Name
display ql(*) curdepth


Since I can use only...
4,237
Posted By jhilmil
It works perfectly. Thanks all!!!!
It works perfectly. Thanks all!!!!
4,237
Posted By jhilmil
Hi, The output to which top is : ...
Hi,

The output to which top is :


$ which top
/usr/bin/top

$ top -b
top: illegal option -- b
Usage: top [-u] [-w] [-q] [-P] [-dx] [-sx] [-p pset_id] [-n number] [-f filename]


...
4,237
Posted By jhilmil
[Solved] Getting the CPU utilization in a file periodically
Hi,

I am trying to create a script that will run for every 5 mins to grep the CPU utilization. I have 6 instances running on a single unix server for which I have to export the individual...
1,301
Posted By jhilmil
Hi, I got my mistake now. I had not...
Hi,

I got my mistake now. I had not specified the path for the input file to this script. :-)

Thanks for your help.
1,301
Posted By jhilmil
Hi, The other cron jobs run without any...
Hi,

The other cron jobs run without any issues and there is no permission problem since I am able to run it manually and teh script is having all 777 permisions.

RudiC,

I do not have...
1,301
Posted By jhilmil
Shell script scheduling in cronjob
Hi,

I have developed a file deletion script and scheduled it in cronjob to run daily at 5:00 AM. But the script is not running automatically any day. However when I run the script manually at any...
7,162
Posted By jhilmil
Thats working. thanks!!! :-)
Thats working. thanks!!! :-)
7,162
Posted By jhilmil
Hi, One more requirement for the same code....
Hi,
One more requirement for the same code. Along with the two parameters in the input file, I want to add one more parameter i.e. file extension. This parameter will be different for different...
13,133
Posted By jhilmil
As I told previously, my system doesnt support...
As I told previously, my system doesnt support maxdepth. Any other option?
I am using # ! /bin/sh
13,133
Posted By jhilmil
This works fine. But what if I have a 100...
This works fine. But what if I have a 100 subdirectories and I cant keep on listing all their names here. I need a generalized script which could be reused anywhere and which would not list out any...
13,133
Posted By jhilmil
maxdepth is not supported. I am using /bin/sh....
maxdepth is not supported. I am using /bin/sh. Any other option?
Showing results 1 to 25 of 36

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