Search Results

Search: Posts Made By: konark
12,620
Posted By konark
stuck
if [ `ls -l|cut -c 2-10 |grep -i x |wc -l ` -gt 0 ]
then
what???

I want to list out all writable files in a directory (including group and others?
25,984
Posted By konark
Please advise
Anyone has any idea over the above topic?:confused:
25,984
Posted By konark
Passwordless sftp from UNIX to windows site
Hallo all ,
I researched many article in this forum as well as googled. But could not get any help. I request the forum to extend some help.


Issue: Want to do a passwordless sftp from an unix...
677,351
Posted By konark
sftp to windows
I read the artcile and observed that this is between a local unix to another local unix machine. What is the procedure if the remote server is windows????
3,272
Posted By konark
The logic is somewhere wrong.. Is there way to...
The logic is somewhere wrong.. Is there way to set the global env parameters and the script can check the flag and then run
2,974
Posted By konark
What if I want to check if the file is there...
What if I want to check if the file is there before executing.

if [ $FLAG='y' ]
then
while [ ! -f flag.running ]
do
echo "script is still running ...."
sleep 100
done
else
touch...
3,272
Posted By konark
I m trying to do it like below.. syntax is...
I m trying to do it like below..
syntax is not working
#flag is a paramater whcih will imply that that script will be checked for dependecy .

if ( $FLAG='y' ) then
while [ ! -f flag.running ]...
3,272
Posted By konark
Shell to run one after another checking any flag or file
a.ksh & b.ksh run at the same time and takes huge resource and time.I want to put a technique so that one wil run after another.

eg put a flag so that each script will check if it running , then...
5,347
Posted By konark
using colors in mailx
I want to use

notify_fail ()
{
echo " " >> ${MSG}
echo " Script failed n">> ${MSG}
cat ${MSG}|mailx -s "t1.ksh Success: "name@domain.com"
exit 1
}

I want script failed to show in Red...
8,256
Posted By konark
reading from a file and pass as variables and ignore # in the file
file.txt contains
------------------
sat1 1300
#sat2 2400
sat3
sat4 500
sat5


I need to write a shell script that will output like the below
#output

sat1.ksh 1300
sat3.ksh...
3,264
Posted By konark
FILE=file.txt for i in `cat $FILE` do ...
FILE=file.txt

for i in `cat $FILE`
do
SCR_NAME=`awk '{print $1}' $i`
PARAM=`awk '{print $2}' $i`
echo "${SCR_NAME}.ksh ${PARAM}"
done


I m trying to do something like this. It doesnt work...
3,264
Posted By konark
Any suggestion for the above query '??
Any suggestion for the above query '??
3,264
Posted By konark
executing scripts by reading names from a file
file.txt contains
------------------
sat1 1300
sat2 2400
sat3
sat4 500

I need to write a shell script that will output like the below
#output

sat1.ksh 1300
sat2.ksh 2400
sat3.ksh...
20,253
Posted By konark
To call/execute a shell script from a shell script
Hi ,

I have 4 shell scripts
a.ksh
b.ksh -> depends on a.ksh success -> log into b.log
c.ksh -> depends on b.ksh success -> log into c.log
d.ksh -> depends on c.ksh success -> log into d.log...
Showing results 1 to 14 of 14

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