9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I'm on Ubuntu 14.04 and I manually updated my coreutils so that "tee" is now on version 8.27
I was running a script using bash where there is some write to pipe error at some point causing the tee command to exit abruptly while the script continues to run. The newer version of tee seems to prevent... (2 Replies)
Discussion started by: stompadon
2 Replies
2. Shell Programming and Scripting
Hi.
In thread https://www.unix.com/shell-programming-and-scripting/265878-date-format-problem.html , Aia and I were discussing the usefulness of using #!/usr/bin/env bash (or ksh, or perl, or ...) as the shebang line. The exchange was good, but it was getting beyond the scope or the thread, so I... (4 Replies)
Discussion started by: drl
4 Replies
3. Shell Programming and Scripting
I am trying to explore HERE Document in UNIX.
Here is the sample script that i am trying to execute:
#!/bin/sh
filename=sample.txt
vi $filename <<EOF
i
This file was created automatically from
a shell script.
^
Here is the error i received when i execute above script:
Vim: Warning: Input... (3 Replies)
Discussion started by: satty007
3 Replies
4. OS X (Apple)
Q1. I understand that /usr/local/bin means I can install/uninstall stuff in here and have any chance of messing up my original system files or effecting any other users. I created this directory myself.
But what about the directory I didn't create, namely /Users/m/bin? How is that directory... (1 Reply)
Discussion started by: michellepace
1 Replies
5. Solaris
Hi all,
below is the problem details:
ora10g@CNORACLE1>which ld
/usr/ucb/ld
ora10g@CNORACLE1>cd /usr/ccs/bin
ora10g@CNORACLE1>ln -s /usr/ucb/ld ld
ln: cannot create ld: File exists
ora10g@CNORACLE1>
how to link it to /usr/ccs/bin? (6 Replies)
Discussion started by: SmartAntz
6 Replies
6. Shell Programming and Scripting
Hi ,
My shell script doesnt function properly while executing.
My shell script has the below mentioned code in it.
#!/bin/sh
CD="/usr/bin/cd"
..
..
$CD /
..
..
main intention behind giving the $CD / is to replace the cd command with /usr/bin/cd at the time of program execution.
... (5 Replies)
Discussion started by: raghu.amilineni
5 Replies
7. Shell Programming and Scripting
I am using ksh.. Whenever we write a shell script the first statement would be #! /bin/ksh. But instead of that I came to find "#@$-q large" in the first line and"#@$-s /usr/bin/ksh -x " in the second line. what does it mean?
Give your comments.....
Thanks
sabeer (4 Replies)
Discussion started by: sabeeralict
4 Replies
8. UNIX for Dummies Questions & Answers
Unfortunately.,
i had remove the files /var/log/messages and /usr/bin/last in our server, we have to touch another one and change the permissions also but not working still now. help me
yours
thakshina (2 Replies)
Discussion started by: thakshina
2 Replies
9. Linux
I installed an application in this location /root/jython and I added a link to the /usr/bin because i want everyone on the system to be able to execute this
ln -s /root/jython/jython jython
I can execute this anywhere when i am logged in as root but when i change user to say juju it returns
... (1 Reply)
Discussion started by: oyesiji
1 Replies