Skip to main content
Bumped by Community user
removed thanks, typo. formatting
Source Link
Anthon
  • 81.4k
  • 42
  • 174
  • 228

I'm writing a ksh script, and I'd like to use a command define by an alias in my .profile file, in my script. I tried this command in the folder containing my script, and it works. However, in my script, I've: [command] not found.

How can I solve this? My command just make a lsls of a repository, then I'm doing in my script  :

[command]| grep ... | { IFS== read -r var1 x && IFS== read -r var2 x; }

I'm writing a ksh script, and I'd like to use a command define by an alias in my .profile file, in my script. I tried this command in the folder containing my script, and it works. However, in my script, I've: [command] not found.

How can I solve this? My command just make a ls of a repository, then I'm doing in my script  :

[command]| grep ... | { IFS== read -r var1 x && IFS== read -r var2 x; }

I'm writing a ksh script, and I'd like to use a command define by an alias in my .profile file, in my script. I tried this command in the folder containing my script, and it works. However, in my script, I've: [command] not found.

How can I solve this? My command just make a ls of a repository, then I'm doing in my script:

[command]| grep ... | { IFS== read -r var1 x && IFS== read -r var2 x; }

I'm writtingwriting a KSHksh script, and I'd like to use a command define by an alias in my .profile.profile file, in my script. I tried this command in the folder containing my script, and it works. However, in my script, I've  : [command] not found[command] not found.

How can I solve this  ? My command just make a ls of a repository, then I'm doing in my script :

[command]| grep ... | { IFS== read -r var1 x && IFS== read -r var2 x; }

Thanks !

I'm writting a KSH script, and I'd like to use a command define by an alias in my .profile file, in my script. I tried this command in the folder containing my script, and it works. However, in my script, I've  : [command] not found.

How can I solve this  ? My command just make a ls of a repository, then I'm doing in my script :

[command]| grep ... | { IFS== read -r var1 x && IFS== read -r var2 x; }

Thanks !

I'm writing a ksh script, and I'd like to use a command define by an alias in my .profile file, in my script. I tried this command in the folder containing my script, and it works. However, in my script, I've: [command] not found.

How can I solve this? My command just make a ls of a repository, then I'm doing in my script :

[command]| grep ... | { IFS== read -r var1 x && IFS== read -r var2 x; }
Source Link
user1058398
  • 4.4k
  • 10
  • 32
  • 32

Using alias in another script (ksh)

I'm writting a KSH script, and I'd like to use a command define by an alias in my .profile file, in my script. I tried this command in the folder containing my script, and it works. However, in my script, I've : [command] not found.

How can I solve this ? My command just make a ls of a repository, then I'm doing in my script :

[command]| grep ... | { IFS== read -r var1 x && IFS== read -r var2 x; }

Thanks !