Ask a Question related to Linux / Unix Administration, Design and Development.
-
yls177 #1
trimming a file but got error?
when i trim a file, i have this error "Invalid null command."
i can do it with root, with shell ksh. but when i am switch to other
user, i get the above error and that user shell is csh. the file
belongs to the switch user.
any ideas?
yls177 Guest
-
trimming a string
I'm generating strings dynamically in my application, and they look something lie this: 0 0 0 435921014 0 0 0 0 What I want to do is trim off... -
trimming arcs/ellipses
I have some arc and ellipse geometrys that I need to trim but can not figure out how. The ellipse I had to draw way out from the end point to get my... -
Trimming Whitespace
I have a movie that imports an avi file into a cast member through script. The avi file has lots of whitespace around it. Unfortunately, when... -
Trimming Blank Spaces in String
You can use the VB.NET function RTRIM. -- I hope this helps, Steve C. Orr, MCSD http://Steve.Orr.net "Temp" <tempmail@temp.com> wrote in... -
trimming a variable.
I need to trim a variable to have everything after 4 chars in a string. IE: var_temp = 200:16:1234567890 i want everything after 200: to be... -
joe durusau #2
Re: trimming a file but got error?
yls177 wrote:
The simple answer is to use whatever shell you wish. If you had posted> when i trim a file, i have this error "Invalid null command."
> i can do it with root, with shell ksh. but when i am switch to other
> user, i get the above error and that user shell is csh. the file
> belongs to the switch user.
>
> any ideas?
the
command you are using, someone could give you a better answer.
Speaking only for myself,
Joe Durusau
joe durusau Guest
-
Doug Freyburger #3
Re: trimming a file but got error?
yls177 wrote:
That error message is from the shell layer of the onion. Conclusion>
> when i trim a file, i have this error "Invalid null command."
> i can do it with root, with shell ksh. but when i am switch to other
> user, i get the above error and that user shell is csh. the file
> belongs to the switch user.
is you have a scripting error. Some variable expands to nothing in
csh that expands to something in ksh, some ksh function being used
that isn't implemented in csh, etc. Since you don't include either
the source code for the ksh and csh commands, nor do you include
the "-x" output, it is doubtfull folks will be of further help.
Post away with that further data.
Doug Freyburger Guest
-
Barry Margolin #4
Re: trimming a file but got error?
In article <c06e4d68.0404272047.4a9d8b56@posting.google.com >,
[email]yls177@hotmail.com[/email] (yls177) wrote:
Are you trying to use the command:> when i trim a file, i have this error "Invalid null command."
> i can do it with root, with shell ksh. but when i am switch to other
> user, i get the above error and that user shell is csh. the file
> belongs to the switch user.
That is valid syntax in shells based on Bourne shell syntax, but it's> filename
not valid in C shell. Use:
cat /dev/null > filename
--
Barry Margolin, [email]barmar@alum.mit.edu[/email]
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
Barry Margolin Guest
-
Bill Marcum #5
Re: trimming a file but got error?
On 27 Apr 2004 21:47:30 -0700, yls177
<yls177@hotmail.com> wrote:How are you trimming the file? If you are using "> file", that is not a> when i trim a file, i have this error "Invalid null command."
> i can do it with root, with shell ksh. but when i am switch to other
> user, i get the above error and that user shell is csh. the file
> belongs to the switch user.
>
> any ideas?
valid csh command. You could do ": > file", or as root,
"> file; chown user file".
--
Giraffe: a ruminant with a view.
Bill Marcum Guest
-
yls177 #6
Re: trimming a file but got error?
Bill Marcum <bmarcum@iglou.com.urgent> wrote in message news:<tps4m1-v9q.ln1@don.localnet>...
> On 27 Apr 2004 21:47:30 -0700, yls177
> <yls177@hotmail.com> wrote:>> > when i trim a file, i have this error "Invalid null command."
> > i can do it with root, with shell ksh. but when i am switch to other
> > user, i get the above error and that user shell is csh. the file
> > belongs to the switch user.
> >
> > any ideas?
> How are you trimming the file? If you are using "> file", that is not a
> valid csh command. You could do ": > file", or as root,
> "> file; chown user file".
yup.. i got the point.. thanks for replying.
yls177 Guest



Reply With Quote

