Search Results

Search: Posts Made By: Vicky Narayan
2,840
Posted By Vicky Narayan
Buddy, The code seems to be correct. But it...
Buddy,

The code seems to be correct. But it needs certain modifications at some places. Please find below the corrected code:

year=`date '+%Y'`
month=`date '+%m'`
day=`date '+%d'`
day=`expr...
3,806
Posted By Vicky Narayan
Buddy, In Unix, the users have been...
Buddy,

In Unix, the users have been characterised into three groups:
Owner (you)
Group (a group of other users that you set up)
World (anyone else browsing around on the file system)

So...
4,544
Posted By Vicky Narayan
Buddy, As my friend Dileep has correctly...
Buddy,

As my friend Dileep has correctly pointed out, your question seems to be confusing.
As per my understanding,
"how do i replace $inp1 with $inp2?" means u want to swap the values of the...
Forum: Linux 05-02-2008
2,778
Posted By Vicky Narayan
Buddy, Having a properties file is a good...
Buddy,

Having a properties file is a good option. U can use a loop to work on each directory individually. Loop it until it reaches the last directory. Inside the loop, do the following things:...
18,105
Posted By Vicky Narayan
Buddy, Please refrain yourself from coding...
Buddy,

Please refrain yourself from coding in such a way. There are many options in Unix to check whether the file is present in the directiory or not. Please check the below code snippet:

if...
3,948
Posted By Vicky Narayan
Buddy, Sorry to say but I dont think there...
Buddy,

Sorry to say but I dont think there is anything you can do now. It could be done before you get the output but there is no option left once the output starts getting displayed on the screen.
8,401
Posted By Vicky Narayan
Buddy, You can also use "$?" inorder to...
Buddy,

You can also use "$?" inorder to check the status code for the last executed command.

Pl dont direct the result to some dummy terminal(/dev/null). We generally do this when we dont need...
11,411
Posted By Vicky Narayan
Buddy, You can use if statement for this...
Buddy,

You can use if statement for this purpose. Please use the below code snippet for the purpose:

if[-z $variable]; then
echo "The variable " $variable "does not contain any value"
fi
...
2,058
Posted By Vicky Narayan
Buddy, I am still not able to figure out the...
Buddy,

I am still not able to figure out the requirement. But if you want to come out of the loop then give the input greater than 50 because this is the LIMIT which you have set in the beginning....
4,227
Posted By Vicky Narayan
Buddy, The code is correct except that you...
Buddy,

The code is correct except that you have not declared the "Eugene" variable.
Hence its not able to compare the to variables so it might be throwing the error.
please use the below code:
...
2,470
Posted By Vicky Narayan
Buddy.... I couldn't really understand ur...
Buddy....

I couldn't really understand ur prob....Can you please give me an example...
Probably I cud be of some help to you...

Bye...
1,917
Posted By Vicky Narayan
Hi Arnie, Are you able to execute the proc...
Hi Arnie,

Are you able to execute the proc from ur shell script? I guess you wont be able to do so...Seems ur database is DB2...
Ur shell script doesn't have any command to connect to...
3,405
Posted By Vicky Narayan
Hi Dave, I too use Putty to connect to Unix...
Hi Dave,

I too use Putty to connect to Unix servers. I dont think there is any server as such...

If you really want to practice commands den I wud suggest you to install Linux in ur system...U...
2,108
Posted By Vicky Narayan
Hi Ashok, U can use "cut" command to extract...
Hi Ashok,

U can use "cut" command to extract the columns. Its quite handy so u wont have any prob.
Check dis out:
If file contans

A|123|NAME1
A|123|NAME2
B|123|NAME3

U need only the...
22,857
Posted By Vicky Narayan
Thanks buddy.....Will try it out.....
Thanks buddy.....Will try it out.....
180,248
Posted By Vicky Narayan
BASH BASH BASH
BASH BASH BASH
53,179
Posted By Vicky Narayan
Hi dere, There is commad in Unix "crypt"...U...
Hi dere,

There is commad in Unix "crypt"...U can use dis functionality....First of all u ll have to compress the file...

% compress myfile
% ls -l myfile.Z
% dd if=myfile.Z...
23,765
Posted By Vicky Narayan
Hi Shary, You can use the "crypt" command to...
Hi Shary,

You can use the "crypt" command to encrypt your file....Pl go thorugh the man pages for its syntax. None wud be able to view the file...Hence ur first condition is satisfied...
Command:...
22,857
Posted By Vicky Narayan
Hey Alaeddin, Its gud that you were able to do...
Hey Alaeddin,
Its gud that you were able to do it....Just needed a small favor...can u pl explain d syntax of dat isql command?

Thanks buddy.....
22,857
Posted By Vicky Narayan
Alaeddin, TempFile1: its the name of a...
Alaeddin,

TempFile1: its the name of a temproary file. Suppose if due to some prob the shell script is not able to connect to your database and you want the error in some file...We ve used temp...
22,857
Posted By Vicky Narayan
Connect to database(Sybase) using shell script and run a query.
Hi Buddy,

I have come across such a situation. Following is the code: Please check it

#=======================================================
# Get the Connection String for isql...
Showing results 1 to 21 of 21

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