Sponsored Content
Top Forums Shell Programming and Scripting Bourne Shell: Hiding error messages Post 302191318 by pjottum on Friday 2nd of May 2008 07:26:29 AM
Old 05-02-2008
the * will be evaluated bij the shell, if there's nothing to remove, it'll give an error.

send the std-err to the std-out:

rm * > /dev/null 2>&1
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Bourne-again shell

Hi guys !! well i'm still new in learning UNIX , and actually i'm still studying it by myself .. anyway, some people told me the Bourne-again shell is a good version of UNIX to work on , and i tried to download yesterday but i didn't know how to start it ...... the ReadMe file associated with... (3 Replies)
Discussion started by: mrsamer
3 Replies

2. Shell Programming and Scripting

I need to understand the differences between the bash shell and the Bourne shell

I do not claim to be an expert, but I have done things with scripts that whole teams of folks have said can not be done. Of course they should have said we do not have the intestinal fortitude to git-r-done. I have been using UNIX actually HPUX since 1992. Unfortunately my old computer died and... (7 Replies)
Discussion started by: awk_sed_hello
7 Replies

3. Shell Programming and Scripting

How to activate Korn Shell functionnalities in Bourne Shell

Hi All I have writing a Korn Shell script to execute it on many of our servers. But some servers don't have Korn Shell installed, they use Borne Shell. Some operations like calculation don't work : cat ${file1} | tail -$((${num1}-${num2})) > ${file2} Is it possible to activate Korn Shell... (3 Replies)
Discussion started by: madmat
3 Replies

4. Shell Programming and Scripting

Hiding error report

Hi Guys, Error report is still displaying on the console after executing the below command. Is there any error in the syntax? check_event=$(cat /sbt/driver/RegressionTests/ResultsArchive/${environment}/$backupPath/TestEvents.txt | g rep "Test Cases FAIL" | cut -c 18-) 2> log2 (4 Replies)
Discussion started by: ajincoep
4 Replies

5. Shell Programming and Scripting

Bourne Shell - Dynamic Variable Error

hi, I am trying to assign a value through 'read' and all works well until I have a space in the in putted value, for the life of me I cant figure out how to escape this. :wall: Any ideas? #!/bin/sh ask_question() { question_text="${1}"; question_answer=""; ... (2 Replies)
Discussion started by: redback
2 Replies

6. Shell Programming and Scripting

Bourne/C shell help

Exercise Five Write a Bourne shell script which: • Professionalism: plan for this from the start. • Has one command line argument. • If the command line argument is a directory then the script should output the number of files in the directory. • If the command line argument is an ordinary... (2 Replies)
Discussion started by: moesom
2 Replies

7. Shell Programming and Scripting

bourne shell script error on line containing declare...

Hi, Get the following error when running a shell script with following statement. Syntax error at line 150 : `(' is not expected 150: declare -a VPO_SEV=(Normal Warning Minor Major Critical) it runs fine using bash, so I guess the script should be using bash but is there a... (1 Reply)
Discussion started by: wilsonee
1 Replies

8. Shell Programming and Scripting

Bourne shell & Korn shell

Could some one tell me the difference btw Bourne shell and the Kshell? Which is more flexible and reliable in terms of portability and efficiency. When i type the following command .. $ echo $SHELL yields me /bin/sh Does this tells me that I am in Bourne shell. If yes, how can i get... (6 Replies)
Discussion started by: bobby1015
6 Replies

9. UNIX for Dummies Questions & Answers

Hiding shell script code

How can we share a script without actually sharing the code? I have 4 scripts in my system. The end user has to execute the first file and based on the inputs (I am reading 1, 2 , 3 as options) my shell script will execute respective script files. Now I dont want to share all the 4 script... (3 Replies)
Discussion started by: Dish
3 Replies

10. Cybersecurity

'Shell Shock' vulnerability in Bourne shell

A severe vulnerability was discovered in Bourne shell. Just google for: bash vulnerability ... for more details. (5 Replies)
Discussion started by: Cochise
5 Replies
std::integral_constant< _Tp, __v >(3)			     Library Functions Manual			     std::integral_constant< _Tp, __v >(3)

NAME
std::integral_constant< _Tp, __v > - SYNOPSIS
Inherited by std::__and_<>, std::__is_base_to_derived_ref< _From, _To, false >, std::__is_copy_assignable_impl< _Tp, true >, std::__is_copy_constructible_impl< _Tp, true >, std::__is_destructible_safe< _Tp, false, true >, std::__is_destructible_safe< _Tp, true, false >, std::__is_empty_non_tuple< tuple< _El0, _El...> >, std::__is_fast_hash< _Hash >, std::__is_fast_hash< hash< long double > >, std::__is_fast_hash< hash< string > >, std::__is_fast_hash< hash< u16string > >, std::__is_fast_hash< hash< u32string > >, std::__is_fast_hash< hash< wstring > >, std::__is_floating_point_helper< typename >, std::__is_floating_point_helper< double >, std::__is_floating_point_helper< float >, std::__is_floating_point_helper< long double >, std::__is_integral_helper< typename >, std::__is_integral_helper< bool >, std::__is_integral_helper< char >, std::__is_integral_helper< char16_t >, std::__is_integral_helper< char32_t >, std::__is_integral_helper< int >, std::__is_integral_helper< long >, std::__is_integral_helper< long long >, std::__is_integral_helper< short >, std::__is_integral_helper< signed char >, std::__is_integral_helper< unsigned char >, std::__is_integral_helper< unsigned int >, std::__is_integral_helper< unsigned long >, std::__is_integral_helper< unsigned long long >, std::__is_integral_helper< unsigned short >, std::__is_integral_helper< wchar_t >, std::__is_lvalue_to_rvalue_ref< _From, _To, false >, std::__is_member_function_pointer_helper< typename >, std::__is_member_object_pointer_helper< typename >, std::__is_member_pointer_helper< _Tp >, std::__is_member_pointer_helper< _Tp _Cp::* >, std::__is_move_assignable_impl< _Tp, true >, std::__is_move_constructible_impl< _Tp, true >, std::__is_nothrow_copy_constructible_impl< _Tp, true >, std::__is_nothrow_move_constructible_impl< _Tp, true >, std::__is_nt_copy_assignable_impl< _Tp, true >, std::__is_nt_destructible_safe< _Tp, false, true >, std::__is_nt_destructible_safe< _Tp, true, false >, std::__is_nt_move_assignable_impl< _Tp, true >, std::__is_nullptr_t_helper< typename >, std::__is_nullptr_t_helper< std::nullptr_t >, std::__is_pointer_helper< typename >, std::__is_pointer_helper< _Tp * >, std::__is_signed_helper< _Tp, bool, bool >, std::__is_signed_helper< _Tp, false, true >, std::__is_tuple_like< _Tp >, std::__is_tuple_like_impl< typename >, std::__is_tuple_like_impl< array< _Tp, _Nm > >, std::__is_tuple_like_impl< pair< _T1, _T2 > >, std::__is_tuple_like_impl< tuple< _Tps...> >, std::__is_void_helper< typename >, std::__is_void_helper< void >, std::__or_<>, std::__ratio_less_impl< _R1, _R2, bool, bool >, std::__uses_allocator_helper< _Tp, _Alloc, bool >, std::_AllConvertible< _From, _To, bool >, std::chrono::__is_duration< _Tp >, std::chrono::__is_duration< duration< _Rep, _Period > >, std::chrono::__is_ratio< _Tp >, std::chrono::__is_ratio< ratio< _Num, _Den > >, std::is_array< typename >, std::is_array< _Tp[]>, std::is_array< _Tp[_Size]>, std::is_bind_expression< _Tp >, std::is_bind_expression< _Bind< _Signature > >, std::is_bind_expression< _Bind_result< _Result, _Signature > >, std::is_bind_expression< const _Bind< _Signature > >, std::is_bind_expression< const _Bind_result< _Result, _Signature > >, std::is_bind_expression< const volatile _Bind< _Signature > >, std::is_bind_expression< const volatile _Bind_result< _Result, _Signature > >, std::is_bind_expression< volatile _Bind< _Signature > >, std::is_bind_expression< volatile _Bind_result< _Result, _Signature > >, std::is_const< typename >, std::is_const< _Tp const >, std::is_error_code_enum< _Tp >, std::is_error_code_enum< future_errc >, std::is_error_condition_enum< _Tp >, std::is_error_condition_enum< errc >, std::is_function< typename >, std::is_function< _Res(_ArgTypes...) const >, std::is_function< _Res(_ArgTypes...) const volatile >, std::is_function< _Res(_ArgTypes...) volatile >, std::is_function< _Res(_ArgTypes...)>, std::is_function< _Res(_ArgTypes......) const >, std::is_function< _Res(_ArgTypes......) const volatile >, std::is_function< _Res(_ArgTypes......) volatile >, std::is_function< _Res(_ArgTypes......)>, std::is_lvalue_reference< typename >, std::is_lvalue_reference< _Tp & >, std::is_object< _Tp >, std::is_rvalue_reference< typename >, std::is_rvalue_reference< _Tp && >, std::is_same< typename, typename >, std::is_same< _Tp, _Tp >, std::is_volatile< typename >, std::is_volatile< _Tp volatile >, std::uses_allocator< priority_queue< _Tp, _Sequence, _Compare >, _Alloc >, std::uses_allocator< queue< _Tp, _Seq >, _Alloc >, std::uses_allocator< stack< _Tp, _Seq >, _Alloc >, and std::uses_allocator< tuple< _Types...>, _Alloc >. Public Types typedef integral_constant< _Tp, __v > type" typedef _Tp value_type Public Member Functions constexpr operator value_type () Static Public Attributes static constexpr _Tp value Detailed Description template<typename _Tp, _Tp __v>struct std::integral_constant< _Tp, __v > integral_constant Definition at line 57 of file type_traits. Author Generated automatically by Doxygen for libstdc++ from the source code. libstdc++ Tue Jun 10 2014 std::integral_constant< _Tp, __v >(3)
All times are GMT -4. The time now is 05:05 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy