Search Results

Search: Posts Made By: sanjay1979
3,610
Posted By sanjay1979
To run a shell script for a definite period
Hi,

I would like to invoke a shell script with period (in seconds) as a parameter and want it to run olny for that period. The script should come out after that period even some work is going...
1,417
Posted By sanjay1979
Hi Methyl, Thanks for reply Below...
Hi Methyl,

Thanks for reply



Below is the output of sed -n l <my_script>

while true\r$
do\r$
echo "Coping files from remote server"\r$
sleep 1\r$
ftp -inv $IP <<!\r$
user $USER...
1,417
Posted By sanjay1979
what's worng with this code
Below is the simple shell script code for ftp files from Remote server -

while true
do
echo "Coping files from remote server"
sleep 1
ftp -inv $IP <<!
user $USER $PASS
cd...
10,175
Posted By sanjay1979
Hi Suresh, try this ac01dw01>find . -type...
Hi Suresh,
try this

ac01dw01>find . -type d -name "a*" | xargs -i find {} -type f | xargs -i awk '/<your word>/ { print FILENAME,":",$0}' {}

it will give u output as -
./folder/file : output...
10,175
Posted By sanjay1979
Hi suresh, try this - find . -type d...
Hi suresh,

try this -

find . -type d -name "a*" | xargs -i find {} -type f | xargs -i grep "your_word" {}

regards
2,584
Posted By sanjay1979
Hi Kodak, Dear still it is not working. I...
Hi Kodak,

Dear still it is not working. I tried with simple one. On ksh I tried following command -
ksh> /bin/bash -c echo -e "first\nsecond"

but it does not give any output.


Regards
2,584
Posted By sanjay1979
Using different shells in one script
Hi,

Is it possible to use multiple shells in one script.
There are sometimes we need to club shell specific commands in single script.
for example in bash mode we use -e with echo to use Escape...
8,727
Posted By sanjay1979
Thanks GEEMonery.
Thanks GEEMonery.
2,029
Posted By sanjay1979
Python in UNIX
Hi,

I am going to handle a project that uses Python on AIX or SunSolaris Plateform. Please tell me what is Python and how and why we should use Python.
Please suggest.

Thanx.
8,727
Posted By sanjay1979
sed insert option(-i) in shell script
Hi,

Please tell me how to use insert option of sed in a shell script on Solaris/AIX plateform.

For example I need to insert few lines on top of every file whose name starts with say "SOL_DEL"....
10,856
Posted By sanjay1979
editing excel file through shell script
Hi,

I am having a business file in excel having charts based on data already present on it. I would like to add new rows after the existing data and refesh the chart on it using shell script.
...
Forum: Solaris 06-06-2009
2,094
Posted By sanjay1979
Solaris Installation on PC with 1.6Ghz and 512 RAM
Hi,

I am having one PC with 1.6 GHz, 512MB RAM and hard disk with 4.0 GB

Can I install any version of Solaris. if yes then please tell me in detail or if no, then what other UNIX flavour is...
Forum: Solaris 06-03-2009
24,751
Posted By sanjay1979
Multiple pattern on same line using grep
Hi,

I would like to search multiple patterns on same line, i.e. all patterns must
present on same line.

Please suggest.

Thanx
Forum: Solaris 06-03-2009
11,593
Posted By sanjay1979
jlliagre, I am using Solaris on both servers.
jlliagre, I am using Solaris on both servers.
Forum: Solaris 05-02-2009
11,593
Posted By sanjay1979
The way I can create link (hard/soft) for files...
The way I can create link (hard/soft) for files present on my local server, can I create the same for file present on remote server,

Also, please tell me the usage of NFS in detail.

Thanks in...
Forum: Solaris 04-18-2009
11,593
Posted By sanjay1979
creating link for a file of remote server
Hi,

I use to access a file on remote server. Can I create a link for this file present on remote server on my local server, if yes then please let me know.


Thanx in advance.
Forum: Solaris 03-31-2009
2,472
Posted By sanjay1979
Thanks pludi for ur reply but - option 1 - it...
Thanks pludi for ur reply but -
option 1 - it is very cumbersome when filelist is long.
option 2- it is very slow process ( performance wise).

Can't we tell this to find command in a direct...
Forum: Solaris 03-31-2009
2,472
Posted By sanjay1979
feeding filenames to find command
Hi,

I am having set of files whose names are stored in a file say "filelist.txt"
Now, I want to find all files contained in "filelist.txt" from my parent directory.

Is there any way to let...
Forum: Solaris 03-14-2009
7,383
Posted By sanjay1979
How to know about a hanged process
Hi,

My process is visible in 'ps' command but actually it is not working or it got hanged. This process is not generating any log. Now How can I know that my process got hanged.

Please help.
Forum: Solaris 03-06-2009
2,508
Posted By sanjay1979
Thanks Franklin.... It worked...:o
Thanks Franklin.... It worked...:o
Forum: Solaris 03-05-2009
2,508
Posted By sanjay1979
column wise substitution in a file
Hi,

I have two files. Want to make an addition of the fifth column of from both the files and redirect it to a third file.
Both files have same records except fifth field and same record should...
Forum: Solaris 02-19-2009
7,225
Posted By sanjay1979
Thans Frank for ur response, but it is still not...
Thans Frank for ur response, but it is still not working.

find . -name "Response" -type d | xargs -i ls -lrt {}/\*.pro

above command still giving same error.

Please help.
Forum: Solaris 02-16-2009
7,225
Posted By sanjay1979
Problem in using wildcard characters in xargs with find
Hi,

Under my parent diectory I have directory named "Response" in many of its subfolders. I am interested to see all files with extention .pro in Response Directory. I am giving following command...
Forum: Solaris 02-13-2009
1,974
Posted By sanjay1979
Hi Joeyg I am using Sun solaris 5.8 with...
Hi Joeyg

I am using Sun solaris 5.8 with ksh. when I write
stat -c %Y temp_file
it gives error. "ksh: stat: not found"

Please help.
Forum: Solaris 02-10-2009
5,519
Posted By sanjay1979
but Togr, I believe LOGNAME and PWD are shell...
but Togr, I believe LOGNAME and PWD are shell variables and even if you type echo ${LOGNAME} or ${PWD} in bourne shell (sh) , it will give u the result.
sorry if I am wrong.

Is it possible to...
Showing results 1 to 25 of 36

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