I have defined this alias as quick way to find out which mount point to use for a USB drive after inserting it:
However, when invoking it, it states the following:
Can someone explain what is the issue here and how it can be resolved?
Given FreeBSD and the # prompt which I take to be that you were logged in as root, Im assuming that you're running under csh/tcsh (the shell assigned to root by default when you install FreeBSD).
I was able to reproduce the problem, but only under FreeBSD (bugger is the host name)
When I try this with csh on a linux host it works fine. The version on linux is more recent, so this could just be a csh bug. I don't use csh, so unfortunately the only things I can offer are:
1) switch the login shell for root in /etc/password to ksh or bash.
2) check the version of csh on your host, and if its out of date with the FreeBSD ports collection upgrade it. No assurance that an upgrade will fix it, but it'd be worth the try if you want/need to use csh over ksh.
The version on my linux host is:
tcsh 6.15.00 (Astron) 2007-03-03 (i586-suse-linux) options wide,nls,lf,dl,al,kan,sm,color,filec
Hi
I'd say I'm having this weird problem where my script isn't taking the value off a variable or printing it. My code is like this:
set count_C= `grep -c C mols`
set count_H= `grep -c H mols`
set count_O= `grep -c O mols`
sed -i '7,7 s/$/ $count_C $count_O $count_H/g' input It... (8 Replies)
If one:
$ find -name 'some expression' -type f > newfile
and then subsequently wants to create an alias file from each pathname the find command retrieved and the > placed within 'newfile', how would one do this? Ideally, the newly created alias files would all be in one directory.
I am... (3 Replies)
Hello Friends,
I'm a newbie to FreeBSD. Trying to implement a IEEE paper : Energy consumption models for ad-hoc terminals (Computers).
The test setup with 3 Computers & Wireless NIC goes as follows:
Transmitter (A) --------------- Forwarder (B) -------------- Receiver (C)
10.0.1.1/24 ... (0 Replies)
Hi All,
I have a trivial question but I dont know how to solve it.
So basically I'm working on a USB key and I have a directory with some scripts which I use to work on files present in other directories within the USB or sometimes on the main harddisk too. The problem is every time I have to... (3 Replies)
In root dir i have created a .profile file and added variable and assigned a path to it:
a = '/dir/dir'
export a
but when i echo (echo $a) the path or use this variable the value or path not getting displayed.
i tried executing the .profile and logging out and logging in, didnt workout. am... (1 Reply)
Hi folks,
I'm trying to define the following command as alias in .cshrc file:
ls -ltr | grep ^d | awk '{print $9}' | xargs du -hs
I defined it as the following:
alias nirdirs '`ls -ltr | grep "^d" | awk "{print \\$9}" | xargs du -hs`'
I've got the following error when I've run the alias:... (7 Replies)
Hello there,
My mulithreaded application (which is too large to represent the source code here) is crashing after installing FreeBSD 7.1-RELEASE/amd64.
It worked properly on others machines (Dual Cores with 4GB of RAM - FreeBSD 6.2-RELEASE/i386).
The current machine has 2x Core 2 Duo... (1 Reply)
Hey all, I was wondering if someone would take a look at this script I'm working on. I don't know if i have the syntax correct for my variables and if the for loop is written correctly.
any assistance would be greatly appreciated.
#!/usr/bin/bash
###########################################... (12 Replies)
I've got a modified samba script (named it winprint) that I can use to print out to a to a shared Win Network printer from an AIX machine. This is a modification of the samba provided smbprint script changed to work under AIX as the backend for a queue. It does not read a config file
I can print... (0 Replies)
I'm trying to define a variable named sin
I already have a variable named cos, which has the value "hello"
I want sin to have the value of "hellothere",
so sin would be something like
sin = $cos & "there"
but I'm not sure that I know the syntax.
Can anyone help?
:confused: (4 Replies)