But unfortunatly your syntaxe didn't works as well :
=> ERROR: command not found
also tested :
=> syntax error near unexpected token `('
And yes i see a stderr@ into /dev/ (also stdin@ and stdout@)
uname says : Linux 2.6.18-238.12.1.el5 x86_64 x86_64 x86_64 GNU/Linux
this is a ssh terminal acces that my web host allowed to me. So for security reason, some files are not into the usual places, but into my local folders.
PS : i'm a really dummy with unix just trying step by step to make my sh script with caution.
Thank you So much Corona !
Now it works, i'm totally confused with that QuoteDoubleQuoteBackQuoteUnderQuote syntax, but this now just works like a charms
I really have to learn how to manage this !
Just to confirm, here the final syntax :
CGPicket > well UNIX shell sounds Armish stylelife when you discover it
Hi All,
I am writing a shell script code. and i want the stderr to be send to a file and the stdout to be displayed in terminal. In my shell script code i use a read command to get data from user.read -r -p "Enter the type :" data
and while i execute my script i use./my_script.sh 2>... (4 Replies)
Hi Experts,
i have a solaris 9 OS and i get the following message repeated many time in my /var/adm/messages :
Oct 31 16:30:44 baobab rsh: can't get stderr port: Cannot assign requested address
have you any idea how can i resolve this issue ??:confused:
thanks for help (2 Replies)
Hello everyone,
I'm a nooby in Linux, and I need some help.
I have a shell script like this:
echo "Start of script" > ../My_Log_Dir/Script_Name.log
..
cp ../My_DataIn/File.txt ../My_DataOut/ 2>> ../My_Log_Dir/Script_Name.log
rc=$?
..
echo "End of Script" >>... (5 Replies)
Can somebody explain to me why the diff output is not going to stderr?
Yet when I issue a diff from the command line the return code is -ne 1.
I am guessing diff always writes to stdout???
Is there away I can force the difff to write to stderr USING THE CURRENT
template. If possible, I... (5 Replies)
Hi everybody.
I was used to redirect stderr to a file in this way, calling a generic script:./myScript &> output.logBut now I need something more sophisticated...Inside a bash script I launch an executable in this way:${command} >> "${globalLogFile}"So I redirect the stdout into globalLogFile.... (14 Replies)
% ls -ld /usr /foo
ls: /foo: No such file or directory
drwxr-xr-x 14 root wheel 512 May 18 02:49 /usr
% ls -ld /usr /foo 1>/dev/null/
/dev/null/: Not a directory.
% ls -ld /usr /foo 2>/dev/null/
/dev/null/: Not a directory.
^^Why why why doesn't this work for me. Furthermore, where is... (7 Replies)
Hello!
Firts of all, sorry fo my poor english, but i hope you'll undestand me :)
Ok, let's go to the problem....
I have a lot of awstats crontabs, and i have one mail,where i get daily and weekly output of all servers that i administrate, now it's problem that i get to his mail every time,... (3 Replies)
Hi,
Need some help here on a script I'm writing. I know that STDERR is normally done is this manner:
script 2>stderr.out
However, if I wanted to output the stderr from a rsh command how do I do that?
Example:
su - username -c "rsh $hostname /opt/gilberteu/scriptname" 1>stdout... (5 Replies)