04-27-2009
Different shells, more likely. Nothing but BASH uses .bashrc . Lots of linux systems use BASH, but lots of other UNIX systems generally login to ksh or others. Though I have seen situations where a read-only .bashrc exists to prevent people mucking with it, that automatically includes .profile or somesuch if present.
Last edited by Corona688; 04-27-2009 at 09:30 PM..
9 More Discussions You Might Find Interesting
1. Windows & DOS: Issues & Discussions
hello everybody,
I am trying to find the path of the Recycle Bin. I know that it's a temporary storage place, but it should have a path that we can refer to.
I want to know it because I sometimes use cygwin to work on Windows, and when you delete something with it, it's gone. I just checked... (4 Replies)
Discussion started by: milhan
4 Replies
2. Shell Programming and Scripting
Hello,
I have having problems with an assignment and am pretty desperate. My assignment is to create a shell script that does a Recycle_Bin tasks. You can only open this with PuTTY software or Knoppix. Perhaps on other software that are able to read linux language.
My part is stuck... (2 Replies)
Discussion started by: chueu
2 Replies
3. What is on Your Mind?
This is a nice ad by Tata....
a2lPniSsFxs (1 Reply)
Discussion started by: Neo
1 Replies
4. Homework & Coursework Questions
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
A set of Linux shell scripts is required to allow users to ‘remove' files without them really disappearing until... (8 Replies)
Discussion started by: burn88
8 Replies
5. UNIX for Dummies Questions & Answers
Hi~ I have a problem with my recycle bin code.
#!/bin/bash
if test !-d ~/.recyclebin #if recycle bin does not exists
then
mkdir ~/.recyclebin # then create recycle bin
else
mv $1 ~/.recyclebin #else move the deleted file in the recycle bin
fi
so when I... (10 Replies)
Discussion started by: zel2zel
10 Replies
6. Shell Programming and Scripting
what is recycle bin mode in unix??? (4 Replies)
Discussion started by: arun508.gatike
4 Replies
7. UNIX for Dummies Questions & Answers
Hi,
Humorous UNIX Commands shows a fun way of using echo and dc to sort of obfuscate a string.
% echo 'sasb3135071790101768542287578439snlbxq'|dc
GET A LIFE!
I am just wanting to know if there is a way to sort of use dc and echo to print out an obfuscated/garbled string instead... (3 Replies)
Discussion started by: newbie_01
3 Replies
8. UNIX for Dummies Questions & Answers
Hi.
I'm started to use minix 3.2.1 recently and I'm trying to create a recycle bin for it. I'm kinda struggling on how to do it. I searched internet and I found scripts created for it but I actually didn't learn how to create scripts in college and I'm not sure if I understand them. I just wanted... (1 Reply)
Discussion started by: ReonarudoB
1 Replies
9. Shell Programming and Scripting
Hi.
I've created scripts for a recycle bin that can list, restore and empty it. I only have the problem of deleting two files with the same name. When I do it one file overwrite the other. What could I do to resolve it? The only thing I can think is asking the user to rename file before moving to... (2 Replies)
Discussion started by: ReonarudoB
2 Replies
LEARN ABOUT DEBIAN
funimagerowget
funimagerowget(3) SAORD Documentation funimagerowget(3)
NAME
FunImageRowGet - get row(s) of an image
SYNOPSIS
#include <funtools.h>
void *FunImageRowGet(Fun fun, void *buf, int rstart, int rstop,
char *plist)
DESCRIPTION
The FunImageRowGet() routine returns one or more image rows from the specified section of a Funtools data file. If the input data are of
type image, the array is generated by extracting the specified image rows and then binning them according to the specified bin factor. If
the input data are contained in a binary table or raw event file, the rows are binned on the columns specified by the bincols= keyword
(using appropriate default columns as needed), after which the image section and bin factors are applied.
The first argument is the Funtools handle returned by FunOpen(). The second buf argument is a pointer to a data buffer to fill. If NULL is
specified, FunImageGet() will allocate a buffer of the appropriate size.
The third and fourth arguments specify the first and last row to retrieve. Rows are counted starting from 1, up to the value of
FUN_YMAX(fun). The final plist (i.e., parameter list) argument is a string containing one or more comma-delimited keyword=value parame-
ters. It can be used to specify the return data type using the bitpix= keyword. If no such keyword is specified in the plist string, the
data type of the image is the same as the data type of the original input file, or is of type int for FITS binary tables.
If the bitpix=value is supplied in the plist string, the data type of the returned image will be one of the supported FITS image data
types:
o 8 unsigned char
o 16 short
o 32 int
o -32 float
o -64 double
For example:
double *drow;
Fun fun;
... open files ...
/* get section dimensions */
FunInfoGet(fun, FUN_SECT_DIM1, &dim1, FUN_SECT_DIM2, &dim2, 0);
/* allocate one line's worth */
drow = malloc(dim1*sizeof(double));
/* retrieve and process each input row (starting at 1) */
for(i=1; i <= dim2; i++){
if( !FunImageRowGet(fun, drow, i, i, "bitpix=-64") )
gerror(stderr, "can't FunImageRowGet: %d %s
", i, iname);
/* reverse the line */
for(j=1; j<=dim1; j++){
... process drow[j-1] ...
}
}
...
On success, a pointer to the image buffer is returned. (This will be the same as the second argument, if NULL is not passed to the latter.)
On error, NULL is returned. Note that the considerations described above for specifying binning columns in FunImageGet() also apply to
FunImageRowGet().
SEE ALSO
See funtools(7) for a list of Funtools help pages
version 1.4.2 January 2, 2008 funimagerowget(3)