Search Results

Search: Posts Made By: rajugp1
2,035
Posted By rajugp1
Actually, when the query does not return anything...
Actually, when the query does not return anything , the script execution enters a pause state.

Suppose if i had just the code like
-------------------------------------
while (command | getline)...
2,035
Posted By rajugp1
Problem in Awk
I have the following code in a awk script.

-------------------------------------------------
command= "sqlplus -s userid/password@database @test.sql CHICAGO"

while (command | getline)
{
var...
12,815
Posted By rajugp1
Hi, You are generating the file in /tmp...
Hi,

You are generating the file in /tmp directory.So, are you running the script the the same directory because you are checking the file's existence in current directory and also for mailing.
...
12,815
Posted By rajugp1
Hi, If mailx is working from the command...
Hi,

If mailx is working from the command prompt, one other reason can be that the file db_status.log may not be available.

If the input file db_status.log is not available , mailx does nothing....
3,857
Posted By rajugp1
An issue with find command.
Hi all,

I have a shell script(ksh) which has the code as follows.
------------------
cd $mydir

for i in `find ./ -type f -mtime +$k`
do
echo $i
done
-----------------------

And in...
27,294
Posted By rajugp1
Need to validate a date input format
Hi all,

I have a shell script(K shell) which takes a date as input.

i want the input to be in DD-MM-YYYY format.

Can i enforce such a format of input string using just one line of code?
...
113,537
Posted By rajugp1
Deleting files older than a given date
Hi all,

I want to delete all files in a directory which are older than a given date.

I thought of doing it by creating a file by the required date by using touch command. And then i would use...
17,596
Posted By rajugp1
How to read from a file in C shell?
Hi All,
I want to read some number from a file into a variable in C shell as follows.

I know that the syntax in ksh is
read x < file name

I dont know what's the equivalent for this in C...
Forum: Programming 09-10-2002
32,642
Posted By rajugp1
How to find the exit status of last command in Unix?
Hi,

I want to find the exit status of the last executed command in C Shell.
Tried $? but getting the error Variable syntax...$? does not seem to work in C shell..
is there any other command in C...
Showing results 1 to 9 of 9

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